Method GetActiveBrain
GetActiveBrain(int)
Access the array of active CinemachineBrains in the scene without generating garbage
Declaration
public static CinemachineBrain GetActiveBrain(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | Index of the brain to access, range 0-ActiveBrainCount |
Returns
Type | Description |
---|---|
CinemachineBrain | The brain at the specified index |