Scripting
Attach Script
// Reference to the FormationManager component
[SerializeField] private FormationManager formationManager; GetUnits
// Get all units managed by the FormationManager
List<GameObject> units = formationManager.GetUnits();SetState
// Set all units to active or passive state
formationManager.SetState(true);UpdateFormation
// Update the formation layout dynamically
formationManager.UpdateFormation(count, spacing);Last updated