Show / Hide Table of Contents

Class vGear

The vGear SDK manager.
vGear 開發包管理員。

Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
vCast
vGear
Inherited Members
vCast.directory
vCast.fileLocation
vCast.configPath
vCast.settingPath
vCast.referenceConfig
vCast.showReference
vCast.GCCollect
vCast.XRSupport
vCast.initialFading
vCast.mobileGazeInteraction
vCast.launcherCommand
vCast.useEditorSetting
vCast.autoApplySetting
vCast.scenesInBuild
vCast.buildBatches
vCast.consoleMode
vCast.forceQuality
vCast.targetFrameRate
vCast.autoReceiveCommand
vCast.essential
vCast.destroyOnStart
vCast.onStartWatermark
vCast.initialized
vCast.attribute
vCast.layer
vCast.environment
vCast.sceneIndex
vCast.frame
vCast.head
vCast.hand
vCast.uiScreen
vCast.separator
vCast.refreshRate
vCast.LoadScene(Int32)
vCast.LoadScene(String)
vCast.ResetScene()
vCast.ResetFrame()
vCast.ResetUsers()
vCast.ResetDebugRotation()
vCast.SetTraveler(Boolean)
vCast.SetSoul(Boolean)
vCast.SetDebug(Boolean)
vCast.SetTracking(Boolean, Boolean)
vCast.SetStereo(Boolean)
vCast.SetTest3D(Boolean, Boolean)
vCast.GetTraveler()
vCast.GetSoul()
vCast.GetDebug()
vCast.GetTracking()
vCast.GetStereo()
vCast.GetTest3D()
vCast.SetUserLevel(Int32, Int32)
vCast.GetUserLevel(Int32)
vCast.EnableMobileGazeInteraction(Boolean)
vCast.SetMobileGazeDuration(Single)
vCast.GetTransforms(Transform, Boolean)
vCast.GetTransform(Transform, String)
vCast.GetTransforms()
vCast.GetTransform(String)
vCast.GetNode(Int32)
vCast.GetNode(String)
vCast.GetNodes()
vCast.GetEntity(Int32)
vCast.GetEntity(String)
vCast.GetEntities()
vCast.GetScreen(Int32)
vCast.GetScreen(String)
vCast.GetScreens()
vCast.MountScreen(Screen, Transform, Vector3, Vector3, Boolean)
vCast.MountScreen(Screen, Transform, Boolean)
vCast.GetCamera(Int32)
vCast.GetCamera(String)
vCast.GetCameras()
Namespace: Votanic.vXR.vGear
Assembly: Votanic.vXR.dll
Syntax
[AddComponentMenu("")]
public class vGear : vCast

Fields

advanced

Additional elements to initialize the system.
系統初始化的附加元素。

Declaration
[Tooltip("Additional elements to initialize the system.\n系統初始化的附加元素。")]
public Advanced advanced
Field 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 advancedScenesInBuild
Field 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 optionPath
Field 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
當 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
當 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
當 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
當 true 時打開

UnityEngine.Transform transform

The object transform
該物件的 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
當 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
該物件的 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
當 true 時啟用

In This Article
Back to top Generated by DocFX