Hi,
We have Add Component and Destroy Component actions, however we don't have Activate and Disable Component actions.
Details, Where and Why I need to use:
I have a main map and cubes with battle-scenes attached (with trigger). Player moves to battle scenes, fight battles and after it returns to main map again. I use a Persistent Save script that keeps Player transform position before going to a battle-scene. After player finishes that scene and returns to main map scene, cube stays at same place with a trigger. So Player returns to same spot on trigger, which creates loop to re-enter to battle scene. To prevent this, I use 2 triggers (outer and inner), which outer one will disable Persistent Save script and inner one Loads the scene. So when Player returns to Main Map, it spawns on the point which Persistent Save script was disabled at that position.
Currently, I tested this with "Destroy Component" and it works as intended. However, after Player is spawned, it doesn't have the component, so I am unable to save the transform position of the Player anymore. Therefore I need a Activate/Disable Game Component action to solve this issue.
Also "Add Component" action brings the Component with default state, but I need that "Persistent Save script" component with its modified state on inspector, therefore if a future Activate/Disable Component action keeps the component state, that would be wonderful.
Thanks!