Class vGear.Scenario
Functions of vGear Scenario System. vGear 劇情系統的功能。
Inheritance
Namespace: Votanic.vXR.vGear
Assembly: Votanic.vXR.dll
Syntax
public class Scenario
Methods
Destroy(GameObject, Single)
Destroy a scenario object.
毀滅一個劇情物件。
Destroy(referenceObject)
Declaration
public static void Destroy(GameObject gameObject, float delay = 0F)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.GameObject | gameObject | Target object |
System.Single | delay | Delay before destroy |
Disable(GameObject)
Disable a scenario object.
停用一個劇情物件。
Disable(referenceObject)
Declaration
public static void Disable(GameObject gameObject)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.GameObject | gameObject |
Enable(GameObject)
Enable a scenario object.
啟用一個劇情物件。
Enable(referenceObject)
Declaration
public static void Enable(GameObject gameObject)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.GameObject | gameObject |
Pause()
Pause scenario.
暫停劇情。
Declaration
public static void Pause()
Play()
Start scenario.
開始劇情。
Declaration
public static void Play()
Reset()
Reset all behaviours in the scenario.
重置劇情中的所有行為。
Declaration
public static void Reset()
Spawn(GameObject)
Spawn a scenario object.
產生一個劇情物件。
Spawn(referenceObject)
Declaration
public static GameObject Spawn(GameObject gameObject)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.GameObject | gameObject | Reference object |
Returns
Type | Description |
---|---|
UnityEngine.GameObject |
Spawn(GameObject, Transform)
Spawn a scenario object.
產生一個劇情物件。
Spawn(referenceObject, targetPoint)
Declaration
public static GameObject Spawn(GameObject gameObject, Transform target)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.GameObject | gameObject | Reference object |
UnityEngine.Transform | target | Target transform |
Returns
Type | Description |
---|---|
UnityEngine.GameObject |
Spawn(GameObject, Vector3, Vector3)
Spawn a scenario object.
產生一個劇情物件。
Spawn(referenceObject, Vector3.zero, Vector3.zero)
Declaration
public static GameObject Spawn(GameObject gameObject, Vector3 position, Vector3 eulerAngles)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.GameObject | gameObject | Reference object |
UnityEngine.Vector3 | position | Target position |
UnityEngine.Vector3 | eulerAngles | Target euler angles |
Returns
Type | Description |
---|---|
UnityEngine.GameObject |
Stop()
Stop scenario.
停止劇情。
Declaration
public static void Stop()
UnPause()
UnPause scenario.
取消暫停劇情。
Declaration
public static void UnPause()