Class vGear_Panel
The UI Panel objects.
使用者介面面板物件。
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
vGear_Panel
Inherited Members
Namespace: Votanic.vXR.vGear
Assembly: Votanic.vXR.dll
Syntax
[AddComponentMenu("")]
public class vGear_Panel : vGear_UI
Fields
close
Close state setting.
關閉狀態設定。
Declaration
[Tooltip("Close state setting.\n關閉狀態設定。")]
public UIState close
Field Value
Type | Description |
---|---|
UIState |
defaultOpen
Open the panel on start if true.
當 true 時在開始時打開面板。
Declaration
[Tooltip("Open the panel on start.\n在開始時打開面板。")]
public bool defaultOpen
Field Value
Type | Description |
---|---|
System.Boolean |
grabWithButtons
Override child buttons grab setting if true.
當 true 時覆蓋子按鈕原有的抓握設定。
Declaration
[Header("[Panel Settings]")]
[Tooltip("Override child buttons grab setting.\n覆蓋子按鈕原有的抓握設定。")]
public bool grabWithButtons
Field Value
Type | Description |
---|---|
System.Boolean |
Properties
isOpened
Return true if the panel is opened.
當面板打開時傳回 true。
Declaration
public bool isOpened { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
Close()
Close the panel.
關閉面板。
Declaration
public virtual void Close()
Disable()
Disable the panel.
停用面板。
Declaration
public virtual void Disable()
Enable()
Enable the panel.
啟用面板。
Declaration
public virtual void Enable()
Open()
Open the panel.
打開面板。
Declaration
public virtual void Open()
Open(Transform)
Open the panel.
打開面板。
Open(transform)
Declaration
public virtual void Open(Transform transform)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Transform | transform | Target transform |
Open(Vector3, Vector3)
Open the panel.
打開面板。
Open(Vector3.zero, Vector3.zero)
Declaration
public virtual void Open(Vector3 position, Vector3 eulerAngles)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector3 | position | Target position |
UnityEngine.Vector3 | eulerAngles | Target euler angles |