Show / Hide Table of Contents

Class vGear_Menu

vGear built-in Menu.
vGear 內置選單。

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

Fields

buttonReference

Button reference to duplicate.
複製按鈕的參考物件。

Declaration
[Tooltip("Button reference to duplicate.\n複製按鈕的參考物件。")]
public vGear_Button buttonReference
Field Value
Type Description
vGear_Button

coreIcons

Icons for menu core button.
選單核心按鈕的圖示。

Declaration
[Tooltip("Icons for menu core button.\n選單核心按鈕的圖示。")]
public List<Texture2D> coreIcons
Field Value
Type Description
System.Collections.Generic.List<UnityEngine.Texture2D>

icons

Icons for custom button.
自定義按鈕的圖示。

Declaration
[Tooltip("Icons for custom button.\n自定義按鈕的圖示。")]
public List<Texture2D> icons
Field Value
Type Description
System.Collections.Generic.List<UnityEngine.Texture2D>

isOpen

Return true if the menu is opened.
當選單打開時傳回 true。

Declaration
[Header("[Status]")]
[Tooltip("Return true if the menu is opened.\n當選單打開時傳回 true。")]
public bool isOpen
Field Value
Type Description
System.Boolean

page

Default page.
預設頁面。

Declaration
[Tooltip("Default page.\n預設頁面。")]
public int page
Field Value
Type Description
System.Int32

pages

Pages of menu.
選單頁面。

Declaration
[Header("[Custom Menu]")]
[Tooltip("Pages of menu.\n選單頁面。")]
public List<vGear_Panel> pages
Field Value
Type Description
System.Collections.Generic.List<vGear_Panel>

panelReference

Panel reference to duplicate.
複製面板的參考物件。

Declaration
[Header("[Built-in Menu]")]
[Tooltip("Panel reference to duplicate.\n複製面板的參考物件。")]
public vGear_Panel panelReference
Field Value
Type Description
vGear_Panel

Methods

Close()

Close menu.
關閉選單。

Declaration
public virtual void Close()

Open(Int32, Boolean)

Open menu.
打開選單。

Open(1)

Declaration
public virtual void Open(int page = 0, bool closeOthers = true)
Parameters
Type Name Description
System.Int32 page

Panel index
面板編號

System.Boolean closeOthers

Close other panels if true
當 true 時關閉其他面板

Open(Int32, Boolean, Transform, Boolean, Transform)

Open menu.
打開選單。

Open(1, true, transform)

Declaration
public virtual void Open(int page, bool closeOthers, Transform transform, bool parent = false, Transform parentTransform = null)
Parameters
Type Name Description
System.Int32 page

Panel index
面板編號

System.Boolean closeOthers

Close other panels if true
當 true 時關閉其他面板

UnityEngine.Transform transform

Target transform
目標 Transform

System.Boolean parent

Parent to parent transfrom
成為母物件 Transform 的子物件

UnityEngine.Transform parentTransform

Parent transfrom
母物件 Transform

Open(Int32, Boolean, Vector3, Vector3, Boolean, Transform)

Open menu.
打開選單。

Open(1, true, transform)

Declaration
public virtual void Open(int page, bool closeOthers, Vector3 position, Vector3 eulerAngles, bool parent = false, Transform parentTransform = null)
Parameters
Type Name Description
System.Int32 page

Panel index
面板編號

System.Boolean closeOthers

Close other panels if true
當 true 時關閉其他面板

UnityEngine.Vector3 position

Target position
目標位置

UnityEngine.Vector3 eulerAngles

Target euler angles
目標角度

System.Boolean parent

Parent to parent transfrom
成為母物件 Transform 的子物件

UnityEngine.Transform parentTransform

Parent transfrom
母物件 Transform

Start()

Declaration
[Obfuscation(Exclude = true)]
public virtual void Start()
In This Article
Back to top Generated by DocFX