Scripting
Attach Script
To update the formation at runtime, first make sure to attach the Formation Manager component to the script you are using.
GetUnits
The following call retrieves all GameObjects spawned as children of the Formation Manager GameObject.
SetState
The following call sets the active state of all GameObjects spawned under the Formation Manager, making them active or inactive based on the given boolean value.
UpdateFormation
The following call updates the formation’s count or spacing using the given values; if no values are provided, it uses the settings from the inspector.
Last updated