Class vGear_Auxiliary
Interactables auxiliary.
交互輔助物。
Inheritance
Namespace: Votanic.vXR.vGear
Assembly: Votanic.vXR.dll
Syntax
[AddComponentMenu("")]
public class vGear_Auxiliary : MonoBehaviour
Fields
buttonGap
Gap between each button.
每個按鈕間的間隔。
Declaration
[Tooltip("Gap between each button.\n每個按鈕間的間隔。")]
public float buttonGap
Field Value
| Type | Description |
|---|---|
| System.Single |
commandObject
Current object calls auxiliary command panel.
目前呼叫輔助物指令面板的物件。
Declaration
[Tooltip("Current object calls auxiliary command panel. <br></br> 目前呼叫輔助物指令面板的物件。")]
public vGear_Interactables commandObject
Field Value
| Type | Description |
|---|---|
| vGear_Interactables |
commandPanel
Command panel component.
指令面板組件。
Declaration
[Tooltip("Command panel component.\n指令面板組件。")]
public vGear_Panel commandPanel
Field Value
| Type | Description |
|---|---|
| vGear_Panel |
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> |
gizmo
Gimzo panel setting.
控件面板設定。
Declaration
[Tooltip("Gimzo panel setting.\n控件面板設定。")]
public AuxiliaryGizmo gizmo
Field Value
| Type | Description |
|---|---|
| AuxiliaryGizmo |
gizmoObject
Current object calls auxiliary gizmo panel.
目前呼叫輔助物控件面板的物件。
Declaration
[Tooltip("Current object calls auxiliary gizmo panel. <br></br> 目前呼叫輔助物控件面板的物件。")]
public vGear_Interactables gizmoObject
Field Value
| Type | Description |
|---|---|
| vGear_Interactables |
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> |
infoObject
Current object calls auxiliary info panel.
目前呼叫輔助物資訊面板的物件。
Declaration
[Header("[Status]")]
[Tooltip("Current object calls auxiliary info panel. <br></br> 目前呼叫輔助物資訊面板的物件。")]
public vGear_Interactables infoObject
Field Value
| Type | Description |
|---|---|
| vGear_Interactables |
infoPanel
Info panel component.
資訊面板組件。
Declaration
[Header("[Components]")]
[Tooltip("Info panel component.\n資訊面板組件。")]
public vGear_Panel infoPanel
Field Value
| Type | Description |
|---|---|
| vGear_Panel |
maxCommands
Maximum auxiliary commands for all interactables.
所有交互物的最多的輔助物指令數目。
Declaration
[Header("[Settings]")]
[Tooltip("Maximum auxiliary commands for all interactables.\n所有交互物的最多的輔助物指令數目。")]
public int maxCommands
Field Value
| Type | Description |
|---|---|
| System.Int32 |
panelEdge
Edge width of panels.
面板邊厚度。
Declaration
[Tooltip("Edge width of panels.\n面板邊厚度。")]
public float panelEdge
Field Value
| Type | Description |
|---|---|
| System.Single |
panelVacancy
Empty space between actual image size and visible image size of each edge.
真實影像大小及望到的影像大小之間的每邊空位大小。
Declaration
[Tooltip("Empty space between actual image size and visible image size of each edge.\n真實影像大小及望到的影像大小之間的每邊空位大小。")]
public float panelVacancy
Field Value
| Type | Description |
|---|---|
| System.Single |
user
User to face.
面向的使用者。
Declaration
[Tooltip("User to face.\n面向的使用者。")]
public vGear_User user
Field Value
| Type | Description |
|---|---|
| vGear_User |
Methods
GizmoMode()
Switch the transformation gizmo mode.
轉換變換控件模式。
Declaration
public void GizmoMode()
GizmoMode(Byte)
Switch the transformation gizmo mode.
轉換變換控件模式。
GizmoMode(0)
Declaration
public void GizmoMode(byte mode)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte | mode | 0 = Postion, 1 = Rotation, 2 = Scale |
GizmoSpace()
Switch the transformation space.
轉換變換空間。
Declaration
public void GizmoSpace()
GizmoSpace(Boolean)
Switch the transformation space.
轉換變換空間。
GizmoSpace(true)
Declaration
public void GizmoSpace(bool isLocal)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | isLocal | Local space if true |
HideCommands()
Close command panel.
關閉指令面板。
Declaration
public void HideCommands()
HideGizmos()
Close command panel.
關閉指令面板。
Declaration
public void HideGizmos()
HideInfo()
Close info panel.
關閉資訊面板。
Declaration
public void HideInfo()
ShowCommands(Parameter)
Open the auxiliary gizmo panel and apply the wand tool.
打開輔助物控件面板及使用操縱桿工具。
ShowCommands(new InteractionParameter("command", 1, -1, 0, InteractorType.Wand))
Declaration
public void ShowCommands(Parameter parameter)
Parameters
| Type | Name | Description |
|---|---|---|
| Parameter | parameter | Paramter class |
ShowCommands(vGear_Interactables)
Open the auxiliary command panel.
打開輔助物指令面板。
ShowCommands(interactables)
Declaration
public void ShowCommands(vGear_Interactables interactables)
Parameters
| Type | Name | Description |
|---|---|---|
| vGear_Interactables | interactables | Target interactables |
ShowGizmos(Parameter)
Open the auxiliary gizmo panel and on top the wand tool.
打開輔助物控件面板及置頂操縱桿工具。
ShowGizmos(new InteractionParameter("command", 1, -1, 0, InteractorType.Wand))
Declaration
public void ShowGizmos(Parameter parameter)
Parameters
| Type | Name | Description |
|---|---|---|
| Parameter | parameter | Paramter class |
ShowGizmos(vGear_Interactables)
Open the auxiliary gizmo panel.
打開輔助物控件面板。
ShowGizmos(interactables)
Declaration
public void ShowGizmos(vGear_Interactables interactables)
Parameters
| Type | Name | Description |
|---|---|---|
| vGear_Interactables | interactables | Target interactables |
ShowInfo(Parameter)
Open the auxiliary info panel and apply the wand tool.
打開輔助物資訊面板及使用操縱桿工具。
ShowInfo(new InteractionParameter("command", 1, -1, 0, InteractorType.Wand))
Declaration
public void ShowInfo(Parameter parameter)
Parameters
| Type | Name | Description |
|---|---|---|
| Parameter | parameter | Paramter class |
ShowInfo(vGear_Interactables)
Open the auxiliary info panel.
打開輔助物資訊面板。
ShowInfo(interactables)
Declaration
public void ShowInfo(vGear_Interactables interactables)
Parameters
| Type | Name | Description |
|---|---|---|
| vGear_Interactables | interactables | Target interactables |