Hello everyone,
I would like to change my direct movement type in-game from "relative to camera" to "tank controls" and vice versa using actionlist. is there an easy way to do that ?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Any Manager field can be modified at runtime through script - just right-click a field's label to get an API reference to it. In the case of Direct-movement type, this is:
To set its value, create a C# script and add public functions that each set it to a specific value, i.e.:
To run these functions, add the script to a GameObject, make it a prefab, and remove from the scene. You can then use the Object: Call event Action to reference the prefab and trigger the intended function.
Just be aware that changes made to Manager field values will survive exiting Play mode - so you'll need to make sure its set correctly when your game begins. To do this, use another such Action in your game's ActionList when start game asset, which can be assigned at the top of the Settings Manager.
Works like a charm, thank you !