CinemachineCore.GetActiveBrain Method

Cinemachine

CinemachineCoreGetActiveBrain Method

Access the array of active CinemachineBrains in the scene without gebnerating garbage

Namespace:  Cinemachine
Assembly:  Cinemachine (in Cinemachine.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public CinemachineBrain GetActiveBrain(
	int index
)
function GetActiveBrain(index);

Parameters

index
Type: SystemInt32
Index of the brain to access, range 0-BrainCount

Return Value

Type: CinemachineBrain
The brain at the specified index
See Also