SDK_SteamVRBoundaries
extends SDK_BaseBoundaries
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/1
public override Vector3[] GetPlayAreaVertices(GameObject playArea)
- Parameters
GameObject playArea
- The GameObject containing the play area representation.- 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/1
public override float GetPlayAreaBorderThickness(GameObject playArea)
- Parameters
GameObject playArea
- The GameObject containing the play area representation.- Returns
float
- The thickness of the drawn border.
The GetPlayAreaBorderThickness returns the thickness of the drawn border for the given play area.
IsPlayAreaSizeCalibrated/1
public override bool IsPlayAreaSizeCalibrated(GameObject playArea)
- Parameters
GameObject playArea
- The GameObject containing the play area representation.- 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.
Updated less than a minute ago