Class Transition
Frame and User transition of transformation.
框架及使用者變換時的過場。
Namespace: Votanic.vXR.vCast.Core
Assembly: Votanic.vXR.dll
Syntax
[Serializable]
public class Transition : Motion
Constructors
Transition(Single, Single, Single, Single, MotionParameter, TransitionMethod, Boolean)
Declare the transition.
宣告過場。
Declaration
public Transition(float factor = 1F, float accel = 0F, float decel = 0F, float rotationRatio = 45F, MotionParameter parameter = MotionParameter.Velocity, TransitionMethod method = TransitionMethod.Fade, bool unscaledDeltaTime = false)
Parameters
Type | Name | Description |
---|---|---|
System.Single | factor | Transition factor value |
System.Single | accel | Transition accelerating value |
System.Single | decel | Transition decelerating value |
System.Single | rotationRatio | Relatively rotation angle with 1 metre movement |
MotionParameter | parameter | Transition calculation parameter |
TransitionMethod | method | Transition method |
System.Boolean | unscaledDeltaTime | Using unscaled delta time if true |
Fields
accelerationFactor
Transition accelerating value.
過場加速值。
Declaration
[Tooltip("Transition accelerating value.\n過場加速值。")]
public float accelerationFactor
Field Value
Type | Description |
---|---|
System.Single |
decelerationFactor
Transition decelerating value.
過場減速值。
Declaration
[Tooltip("Transition decelerating value.\n過場減速值。")]
public float decelerationFactor
Field Value
Type | Description |
---|---|
System.Single |
fadeColor
Color for fading.
淡出淡入效果的顏色。
Declaration
[Tooltip("Color for fading.\n淡出淡入效果的顏色。")]
public Color fadeColor
Field Value
Type | Description |
---|---|
UnityEngine.Color |
fadedDuration
The duration of faded out state.
淡出後持續時間。
Declaration
[Tooltip("The duration of faded out state.\n淡出後持續時間。")]
public float fadedDuration
Field Value
Type | Description |
---|---|
System.Single |
method
Transition method.
過場方法。
Declaration
[Tooltip("Transition method.\n過場方法。")]
public TransitionMethod method
Field Value
Type | Description |
---|---|
TransitionMethod |
parameter
Transition calculation parameter.
過場計算參數。
Declaration
[Tooltip("Transition calculation parameter.\n過場計算參數。")]
public MotionParameter parameter
Field Value
Type | Description |
---|---|
MotionParameter |
rotationRatio
Relatively rotation angle with 1 metre movement.
一米移動距離的相對旋轉角度。
Declaration
[Tooltip("Relatively rotation angle with 1 metre movement.\n一米移動距離的相對旋轉角度。")]
public float rotationRatio
Field Value
Type | Description |
---|---|
System.Single |
transitionFactor
Transition factor value.
過場因子。
Declaration
[Tooltip("Transition factor value.\n過場因子。")]
public float transitionFactor
Field Value
Type | Description |
---|---|
System.Single |
unscaledDeltaTime
Using unscaled delta time if true.
當 true 時使用未縮放的時間變化。
Declaration
[Tooltip("Using unscaled delta time.\n使用未縮放的時間變化。")]
public bool unscaledDeltaTime
Field Value
Type | Description |
---|---|
System.Boolean |