Method GetVirtualCamera
GetVirtualCamera(int)
Access the array of active ICinemachineCamera in the scene without gebnerating garbage
Declaration
public CinemachineVirtualCameraBase GetVirtualCamera(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | Index of the camera to access, range 0-VirtualCameraCount |
Returns
| Type | Description |
|---|---|
| CinemachineVirtualCameraBase | The virtual camera at the specified index |