Struct CinemachineSplineRoll.RollData
Structure to hold roll value for a specific location on the track.
Inherited Members
Namespace: Unity.Cinemachine
Assembly: Unity.Cinemachine.dll
Syntax
[Serializable]
public struct CinemachineSplineRoll.RollData
Fields
Value
Roll (in degrees) around the forward direction for specific location on the track. When placed on a SplineContainer, this is going to be a global override that affects all vcams using the Spline. When placed on a CinemachineCamera, this is going to be a local override that only affects that CinemachineCamera.
Declaration
[Tooltip("Roll (in degrees) around the forward direction for specific location on the track.\n- When placed on a SplineContainer, this is going to be a global override that affects all vcams using the Spline.\n- When placed on a CinemachineCamera, this is going to be a local override that only affects that CinemachineCamera.")]
public float Value
Field Value
Type | Description |
---|---|
float |
Operators
implicit operator RollData(float)
Implicit conversion from float
Declaration
public static implicit operator CinemachineSplineRoll.RollData(float roll)
Parameters
Type | Name | Description |
---|---|---|
float | roll | The value with which to initialize the RollData setting. |
Returns
Type | Description |
---|---|
CinemachineSplineRoll.RollData | A new RollData setting with the given value. |
implicit operator float(RollData)
Implicit conversion to float
Declaration
public static implicit operator float(CinemachineSplineRoll.RollData roll)
Parameters
Type | Name | Description |
---|---|---|
CinemachineSplineRoll.RollData | roll | The RollData setting to convert. |
Returns
Type | Description |
---|---|
float | The value of the RollData setting. |