Cinemachine
![]() | CinemachineCoreFindPotentialTargetBrain Method |
Try to find a CinemachineBrain to associate with a
Cinemachine Virtual Camera. The first CinemachineBrain
in which this Cinemachine Virtual Camera is live will be used.
If none, then the first active CinemachineBrain will be used.
Brains with OutputCamera == null will not be returned.
Final result may be null.
Namespace: Cinemachine
Assembly: Cinemachine (in Cinemachine.dll) Version: 2.0.0.0 (2.0.0.0)

public CinemachineBrain FindPotentialTargetBrain( ICinemachineCamera vcam )
function FindPotentialTargetBrain(vcam);
Parameters
- vcam
- Type: CinemachineICinemachineCamera
Virtual camera whose potential brain we need.
Return Value
Type: CinemachineBrainFirst CinemachineBrain found that might be appropriate for this vcam, or null
