Show / Hide Table of Contents

Class vCast.Fader

Class of World Faders related functions.
世界過場器相關的功能類別。

Inheritance
System.Object
vCast.Fader
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
過場計算參數

In This Article
Back to top Generated by DocFX