Show / Hide Table of Contents

Class vGear_BehaviourManager

Manage the behaviour objects in the scene.
管理場景中的行為物件。

Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
vGear_BehaviourManager
Namespace: Votanic.vXR.vGear
Assembly: Votanic.vXR.dll
Syntax
[AddComponentMenu("")]
[DefaultExecutionOrder(-7)]
public class vGear_BehaviourManager : MonoBehaviour

Fields

behaviourPrefab

Behaviour object prefab.
行為物件預製件。

Declaration
[Tooltip("Behaviour prefab for creating behaviour.\n建立行為用的行為預製件。")]
public vGear_Behaviour behaviourPrefab
Field Value
Type Description
vGear_Behaviour

behaviours

List of behaviour objects.
行為物件列表。

Declaration
[Header("[Behaviours]")]
[Tooltip("Behaviour list.\n行為列表。")]
public List<vGear_Behaviour> behaviours
Field Value
Type Description
System.Collections.Generic.List<vGear_Behaviour>

playOnStart

Play behaviours on start if true.
當 true 時在開始執行所有行為。

Declaration
[Header("[Settings]")]
[Tooltip("Launch all behaviours on start.\n開始時啟動所有行為。")]
public bool playOnStart
Field Value
Type Description
System.Boolean

Methods

Add()

Add a new behaviour object into the manager.
在管理員中新增一個行為物件。

Declaration
public virtual void Add()

Pause()

Pause all behaviours.
暫停所有行為。

Declaration
public virtual void Pause()

Play()

Play all behaviours.
執行所有行為。

Declaration
public virtual void Play()

Remove()

Remove a behaviour object in the manager.
在管理員中移除一個行為物件。

Declaration
public virtual void Remove()

Remove(Int32)

Remove a behaviour object in the manager.
在管理員中移除一個行為物件。

Remove(0)

Declaration
public virtual void Remove(int index)
Parameters
Type Name Description
System.Int32 index

Object index
物件編號

Remove(String)

Remove a behaviour object in the manager.
在管理員中移除一個行為物件。

Remove("GameObject")

Declaration
public virtual void Remove(string name)
Parameters
Type Name Description
System.String name

Object name
物件名稱

Reset()

Reset all behaviours.
重置所有行為。

Declaration
public virtual void Reset()

Stop()

Stop all behaviours.
停止所有行為。

Declaration
public virtual void Stop()

UnPause()

UnPause all behaviours.
取消暫停所有行為。

Declaration
public virtual void UnPause()
In This Article
Back to top Generated by DocFX