Class vCast.Fader
Class of World Faders related functions.
世界過場器相關的功能類別。
Inheritance
Namespace: Votanic.vXR.vCast
Assembly: Votanic.vXR.dll
Syntax
public class Fader
Methods
Fade(Int32, Color, Single, Single, Single, MotionParameter)
Apply Custom Fade of the target fader.
使用指定過場器的自定義過場效果。
Fade(0, Color.black, 8, 0, 0, MotionParameter.Velocity)
Declaration
public static void Fade(int index, Color color, float factor, float accel, float decel, MotionParameter parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Fader Index |
UnityEngine.Color | color | Target Color |
System.Single | factor | Transition factor value |
System.Single | accel | Transition accelerating value |
System.Single | decel | Transition decelerating value |
MotionParameter | parameter | Transition calculation parameter |
Fade(Color, Single, Single, Single, MotionParameter)
Apply Custom Fade of all worldFaders.
使用所有過場器的自定義過場效果。
Fade(Color.black, 8, 0, 0, MotionParameter.Velocity)
Declaration
public static void Fade(Color color, float factor, float accel, float decel, MotionParameter parameter)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Color | color | Target Color |
System.Single | factor | Transition factor value |
System.Single | accel | Transition accelerating value |
System.Single | decel | Transition decelerating value |
MotionParameter | parameter | Transition calculation parameter |
FadeIn()
Apply Fade In of all worldFaders.
使用所有過場器的淡入。
Declaration
public static void FadeIn()
FadeIn(Int32)
Apply Fade In of the target fader.
使用指定過場器的淡入。
FadeIn(0)
Declaration
public static void FadeIn(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Fader Index |
FadeOut()
Apply Fade Out of all worldFaders.
使用所有過場器的淡出。
Declaration
public static void FadeOut()
FadeOut(Int32)
Apply Fade Out of the target fader.
使用指定過場器的淡出。
FadeOut(0)
Declaration
public static void FadeOut(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Fader Index |
GetFader(Int32)
Get Fader by index.
根據編號取得過場器。
GetFader(0)
Declaration
public static vCast_Fader GetFader(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Fader Index |
Returns
Type | Description |
---|---|
vCast_Fader |
GetFaders()
Get all Faders in the scene.
取得場景中所有過場器。
Declaration
public static List<vCast_Fader> GetFaders()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<vCast_Fader> |
IsFading()
Return true if the first fader are fading.
當第一個過場器運行時傳回 true。
Declaration
public static bool IsFading()
Returns
Type | Description |
---|---|
System.Boolean |
SetColor(Int32, Color)
Set the default fader color to target world fader.
為目標世界過場器設定預設過場顏色。
SetColor(0, Color.black)
Declaration
public static void SetColor(int index, Color color)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Fader Index |
UnityEngine.Color | color | Target Color |
SetColor(Color)
Set the default fader color to all world faders.
為所有世界過場器設定預設過場顏色。
SetColor(Color.black)
Declaration
public static void SetColor(Color color)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Color | color | Target Color |
SetFader(Int32, Color, Single, Single, Single, MotionParameter)
Set the world fader transition effect.
設定世界淡出淡入效果。
SetFader(0, Color.black, 8, 0, 0, MotionParameter.Velocity)
Declaration
public void SetFader(int index, Color color, float factor, float accel, float decel, MotionParameter parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Fader Index |
UnityEngine.Color | color | Target Color |
System.Single | factor | Transition factor value |
System.Single | accel | Transition accelerating value |
System.Single | decel | Transition decelerating value |
MotionParameter | parameter | Transition calculation parameter |
SetFader(Color, Single, Single, Single, MotionParameter)
Set the world fader transition effect.
設定世界淡出淡入效果。
SetFader(Color.black, 8, 0, 0, MotionParameter.Velocity)
Declaration
public void SetFader(Color color, float factor, float accel, float decel, MotionParameter parameter)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Color | color | Target Color |
System.Single | factor | Transition factor value |
System.Single | accel | Transition accelerating value |
System.Single | decel | Transition decelerating value |
MotionParameter | parameter | Transition calculation parameter |