Method GetWeight
GetWeight(int)
Get the weight of the child at an index.
Declaration
public float GetWeight(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The child index. Only immediate CinemachineVirtualCameraBase children are counted. |
Returns
| Type | Description |
|---|---|
| float | The weight of the camera. Valid only if camera is active and enabled. |
GetWeight(CinemachineVirtualCameraBase)
Get the weight of the child CinemachineVirtualCameraBase.
Declaration
public float GetWeight(CinemachineVirtualCameraBase vcam)
Parameters
| Type | Name | Description |
|---|---|---|
| CinemachineVirtualCameraBase | vcam | The child camera. |
Returns
| Type | Description |
|---|---|
| float | The weight of the camera. Valid only if camera is active and enabled. |