API ReferenceSandbox.VR

VRInputclass

objectVRInput
Namespace
Sandbox.VR
Assembly
Sandbox.Engine
Declaration
public class Sandbox.VR.VRInput

Properties9

Showing 9 properties

public Transform Sandbox.VR.VRInput.Anchor { get; set; }PUBLICGETSET

Gets or sets where the center of the VR play area is in world space.

Returns:Transform

public bool Sandbox.VR.VRInput.ControllersAreDrawing { get; set; }PUBLICGETSETOBSOLETE

Returns true if SteamVR is drawing the controllers

Obsolete: This API member is obsolete.

Returns:bool

public static Sandbox.VR.VRInput Sandbox.VR.VRInput.Current { get; set; }PUBLICSTATICGETSET

The current relevant `Sandbox.VR.VRInput` instance.

Returns:VRInput

public Transform Sandbox.VR.VRInput.Head { get; set; }PUBLICGETSET

Position and rotation of the Head Mounted Display in local space coordinates.

Returns:Transform

public bool Sandbox.VR.VRInput.IsLeftHandDominant { get; set; }PUBLICGETSETOBSOLETE

Returns true if the left hand is dominant

Obsolete: This API member is obsolete.

Returns:bool

public float Sandbox.VR.VRInput.Scale { get; set; }PUBLICGETSET

Get or set the player's scale in the world. If you set it to 2 the player will be twice as big.

Returns:float

public System.Collections.Generic.IReadOnlyList`1<Sandbox.VR.TrackedObject> Sandbox.VR.VRInput.TrackedObjects { get; set; }PUBLICGETSET

A list of available trackers.

Returns:IReadOnlyList<TrackedObject>

On this page