Method GetCinemachineComponent
GetCinemachineComponent(Stage)
Get the component set for a specific stage.
Declaration
public 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 |
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 |
Type Parameters
| Name | Description |
|---|---|
| T |