Guides
Guides
These docs are for v3.1.0. Click to read the latest docs for v3.3.0.

SDK_FallbackBoundaries

extends SDK_BaseBoundaries

Overview

The Base Boundaries SDK script provides a bridge to SDK methods that deal with the play area of SDKs that support room scale play spaces.

This is the fallback class that will just return default values.

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.