Class vGear
The vGear SDK manager.
 vGear 開發包管理員。
Inheritance
Inherited Members
Namespace: Votanic.vXR.vGear
Assembly: Votanic.vXR.dll
Syntax
[AddComponentMenu("")]
public class vGear : vCastFields
advanced
Additional elements to initialize the system. 
 系統初始化的附加元素。
Declaration
[Tooltip("Additional elements to initialize the system.\n系統初始化的附加元素。")]
public Advanced advancedField Value
| Type | Description | 
|---|---|
| Advanced | 
advancedScenesInBuild
Save and load scenes in build optional setting by scene path, not the common setting.
 根據場景路徑儲存及讀取構建場景可選設定,不再是共用設定。
Declaration
[Tooltip("Save and load scenes in build optional setting by scene path, not the common setting.\n根據場景路徑儲存及讀取構建場景可選設定,不再是共用設定。")]
public AdvancedScenesInBuild advancedScenesInBuildField Value
| Type | Description | 
|---|---|
| AdvancedScenesInBuild | 
optionPath
The path for reading the optional project setting file. 
 讀取選擇性項目設置文件的路徑。
Declaration
[Header("[Advanced]")]
[Tooltip("The path for reading the optional project setting file.\n讀取選擇性項目設置文件的路徑。")]
public string optionPathField Value
| Type | Description | 
|---|---|
| System.String | 
Properties
controller
The first controller. 
 第一個控制器。
Declaration
public static vGear_Controller controller { get; }Property Value
| Type | Description | 
|---|---|
| vGear_Controller | 
sensor
The first sensor. 
 第一個感應器。
Declaration
public static vGear_Sensor sensor { get; }Property Value
| Type | Description | 
|---|---|
| vGear_Sensor | 
user
The first user. 
 第一位使用者。
Declaration
public static vGear_User user { get; }Property Value
| Type | Description | 
|---|---|
| vGear_User | 
Methods
EnableWaypoints(Boolean)
Enable or disable waypoints.
 啟用或停用傳送點。
EnableWaypoints(true)
Declaration
public static void EnableWaypoints(bool enable)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | enable | Enable if true  | 
GetController(Int32)
Get vGear Controller by index.
 根據編號取得 vGear 控制器。
GetController(0)
Declaration
public static vGear_Controller GetController(int index)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | index | Controller Index  | 
Returns
| Type | Description | 
|---|---|
| vGear_Controller | 
GetController(String)
Get vGear Controller by name.
 根據名稱取得 vGear 控制器。
GetController("Controller")
Declaration
public static vGear_Controller GetController(string name)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | name | Controller Name  | 
Returns
| Type | Description | 
|---|---|
| vGear_Controller | 
GetControllers()
Get all vGear Controllers in the scene.
 取得場景中所有 vGear 控制器。
Declaration
public static List<vGear_Controller> GetControllers()Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.List<vGear_Controller> | 
GetSensor(Int32)
Get vGear Sensor by index.
 根據編號取得 vGear 感應器。
GetSensor(0)
Declaration
public static vGear_Sensor GetSensor(int index)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | index | Sensor Index  | 
Returns
| Type | Description | 
|---|---|
| vGear_Sensor | 
GetSensor(String)
Get vGear Sensor by name.
 根據名稱取得 vGear 感應器。
GetSensor("Sensor")
Declaration
public static vGear_Sensor GetSensor(string name)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | name | Sensor Name  | 
Returns
| Type | Description | 
|---|---|
| vGear_Sensor | 
GetSensors()
Get all vGear Sensors in the scene.
 取得場景中所有 vGear 感應器。
Declaration
public static List<vGear_Sensor> GetSensors()Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.List<vGear_Sensor> | 
GetUser(Int32)
Get vGear User by index.
 根據編號取得 vGear 使用者。
GetUser(0)
Declaration
public static vGear_User GetUser(int index)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | index | User Index  | 
Returns
| Type | Description | 
|---|---|
| vGear_User | 
GetUser(String)
Get vGear User by name.
 根據名稱取得 vGear 使用者。
GetUser("User")
Declaration
public static vGear_User GetUser(string name)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | name | User Name  | 
Returns
| Type | Description | 
|---|---|
| vGear_User | 
GetUsers()
Get all vGear Users in the scene.
 取得場景中所有 vGear 使用者。
Declaration
public static List<vGear_User> GetUsers()Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.List<vGear_User> | 
GetWaypoint(Int32)
Get Waypoint by index.
 根據編號取得傳送點。
GetWaypoint(0)
Declaration
public static vGear_Waypoint GetWaypoint(int index)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | index | Waypoint Index  | 
Returns
| Type | Description | 
|---|---|
| vGear_Waypoint | 
GetWaypoints()
Get all Waypoints in the scene.
 取得場景中所有傳送點。
Declaration
public static List<vGear_Waypoint> GetWaypoints()Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.List<vGear_Waypoint> | 
LandingMenu()
Open or close the bulit-in landing Menu.
 打開或關閉內置登陸選單。
Declaration
public static void LandingMenu()LandingMenu(Boolean)
Open or close the bulit-in landing Menu.
 打開或關閉內置登陸選單。
LandingMenu(true)
Declaration
public static void LandingMenu(bool open)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | open | Open if true  | 
Menu()
Open or close the bulit-in Menu.
 打開或關閉內置選單。
Declaration
public static void Menu()Menu(Boolean)
Open or close the bulit-in Menu.
 打開或關閉內置選單。
Menu(true)
Declaration
public static void Menu(bool open)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | open | Open if true  | 
Menu(Boolean, Transform)
Open or close the bulit-in Menu at an object position and euler angles.
 在某物件的位置及角度打開或關閉內置選單。
Menu(true, transform)
Declaration
public static void Menu(bool open, Transform transform)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | open | Open if true  | 
| UnityEngine.Transform | transform | The object transform  | 
Menu(Boolean, Vector3, Vector3)
Open or close the bulit-in Menu at target position and euler angles.
 在目標位置及角度打開或關閉內置選單。
Menu(true, Vector3.zero, Vector3.zero)
Declaration
public static void Menu(bool open, Vector3 position, Vector3 eulerAngles)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | open | Open if true  | 
| UnityEngine.Vector3 | position | Target position  | 
| UnityEngine.Vector3 | eulerAngles | Target euler angles  | 
Menu(Transform)
Open or close the bulit-in Menu at an object position and euler angles.
 在某物件的位置及角度打開或關閉內置選單。
Menu(transform)
Declaration
public static void Menu(Transform transform)Parameters
| Type | Name | Description | 
|---|---|---|
| UnityEngine.Transform | transform | The object transform  | 
Menu(Vector3, Vector3)
Open or close the bulit-in Menu at target position and euler angles.
 在目標位置及角度打開或關閉內置選單。
Menu(Vector3.zero, Vector3.zero)
Declaration
public static void Menu(Vector3 position, Vector3 eulerAngles)Parameters
| Type | Name | Description | 
|---|---|---|
| UnityEngine.Vector3 | position | Target position  | 
| UnityEngine.Vector3 | eulerAngles | Target euler angles  | 
SetPhotography()
Enable or disabl the photography mode.
 啟用或停用傳送點攝影模式。
Declaration
public static void SetPhotography()SetPhotography(Boolean)
Enable or disable the photography mode.
 啟用或停用傳送點攝影模式。
SetPhotography(true)
Declaration
public static void SetPhotography(bool photography)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | photography | Enable if true  |