Method FindPotentialTargetBrain
FindPotentialTargetBrain(CinemachineVirtualCameraBase)
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 with the correct layer filter will be used. Brains with OutputCamera == null will not be returned. Final result may be null.
Declaration
public CinemachineBrain FindPotentialTargetBrain(CinemachineVirtualCameraBase vcam)
Parameters
Type | Name | Description |
---|---|---|
CinemachineVirtualCameraBase | vcam | Virtual camera whose potential brain we need. |
Returns
Type | Description |
---|---|
CinemachineBrain | First CinemachineBrain found that might be appropriate for this vcam, or null |