Struct InputAxis.RecenteringSettings
Defines the settings for automatic re-centering
Inherited Members
Namespace: Unity.Cinemachine
Assembly: Unity.Cinemachine.dll
Syntax
[Serializable]
public struct InputAxis.RecenteringSettings
Fields
Enabled
If set, will enable automatic re-centering of the axis
Declaration
[Tooltip("If set, will enable automatic re-centering of the axis")]
public bool Enabled
Field Value
Type | Description |
---|---|
bool |
Time
How long it takes to reach center once re-centering has started
Declaration
[Tooltip("How long it takes to reach center once re-centering has started.")]
public float Time
Field Value
Type | Description |
---|---|
float |
Wait
If no user input has been detected on the axis for this man seconds, re-centering will begin.
Declaration
[Tooltip("If no user input has been detected on the axis for this many seconds, re-centering will begin.")]
public float Wait
Field Value
Type | Description |
---|---|
float |
Properties
Default
Default value
Declaration
public static InputAxis.RecenteringSettings Default { get; }
Property Value
Type | Description |
---|---|
InputAxis.RecenteringSettings |
Methods
Validate()
Call from OnValidate: Make sure the fields are sensible
Declaration
public void Validate()