Method GetExtraState
GetExtraState<T>(CinemachineVirtualCameraBase)
Because extensions can be placed on manager cams and will in that case be called for all the vcam children, vcam-specific state information should be stored here. Just define a class to hold your state info and use it exclusively when calling this.
Declaration
protected T GetExtraState<T>(CinemachineVirtualCameraBase vcam) where T : CinemachineExtension.VcamExtraStateBase, new()
Parameters
| Type | Name | Description |
|---|---|---|
| CinemachineVirtualCameraBase | vcam | The virtual camera being processed |
Returns
| Type | Description |
|---|---|
| T | The extra state, cast as type T |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the extra state class |