SDK_SteamVRBoundaries
Overview
The SteamVR Boundaries SDK script provides a bridge to the SteamVR SDK play area.
Class Methods
InitBoundaries/0
public override void InitBoundaries()
- Parameters
- none
- Returns
- none
The InitBoundaries method is run on start of scene and can be used to initialse anything on game start.
GetPlayArea/0
public override Transform GetPlayArea()
- Parameters
- none
- Returns
Transform
- A transform of the object representing the play area in the scene.
The GetPlayArea method returns the Transform of the object that is used to represent the play area in the scene.
GetPlayAreaVertices/0
public override Vector3[] GetPlayAreaVertices()
- Parameters
- none
- Returns
Vector3[]
- A Vector3 array of the points in the scene that represent the play area boundaries.
The GetPlayAreaVertices method returns the points of the play area boundaries.
GetPlayAreaBorderThickness/0
public override float GetPlayAreaBorderThickness()
- Parameters
- none
- Returns
float
- The thickness of the drawn border.
The GetPlayAreaBorderThickness returns the thickness of the drawn border for the given play area.
IsPlayAreaSizeCalibrated/0
public override bool IsPlayAreaSizeCalibrated()
- Parameters
- none
- Returns
bool
- Returns true if the play area size has been auto calibrated and set by external sensors.
The IsPlayAreaSizeCalibrated method returns whether the given play area size has been auto calibrated by external sensors.
GetDrawAtRuntime/0
public override bool GetDrawAtRuntime()
- Parameters
- none
- Returns
bool
- Returns true if the drawn border is being displayed.
The GetDrawAtRuntime method returns whether the given play area drawn border is being displayed.
SetDrawAtRuntime/1
public override void SetDrawAtRuntime(bool value)
- Parameters
bool value
- The state of whether the drawn border should be displayed or not.
- Returns
- none
The SetDrawAtRuntime method sets whether the given play area drawn border should be displayed at runtime.
Updated less than a minute ago