Method GetCinemachineComponent
GetCinemachineComponent(Stage)
Get the component set for a specific stage.
Declaration
public override CinemachineComponentBase GetCinemachineComponent(CinemachineCore.Stage stage)
Parameters
Type | Name | Description |
---|---|---|
CinemachineCore.Stage | stage | The stage for which we want the component |
Returns
Type | Description |
---|---|
CinemachineComponentBase | The Cinemachine component for that stage, or null if not defined |
Overrides
GetCinemachineComponent<T>()
Get an existing component of a specific type from the cinemachine pipeline.
Declaration
public T GetCinemachineComponent<T>() where T : CinemachineComponentBase
Returns
Type | Description |
---|---|
T | The component if it's present, or null |
Type Parameters
Name | Description |
---|---|
T | The type of component to get |