![]() |
Unity SDK Docs 1.5.0.beta.7
|
The Glasses API and runtime. More...
Classes | |
| class | DisplayInfo |
Public Types | |
| enum | AREyes { EYE_LEFT = 0 , EYE_RIGHT , EYE_MAX } |
Static Public Member Functions | |
| static bool | IsTracked (PlayerIndex playerIndex=PlayerIndex.One) |
| Indicate if the specified glasses are tracked. | |
| static bool | TryGetDisplayInfo (PlayerIndex playerIndex, out DisplayInfo displayInfo) |
| Gets the display info associated with the specified player's glasses. | |
| static bool | TryGetFriendlyName (PlayerIndex playerIndex, out string friendlyName) |
| Gets the friendly name associated with the specified player's glasses in the Tilt Five Control Panel. | |
| static bool | TryGetPose (PlayerIndex playerIndex, out Pose pose) |
| Attempts to get the position and orientation of the specified player's glasses. | |
| static bool | TryGetPreviewPose (PlayerIndex playerIndex, out Pose pose) |
| Attempts to get the position and orientation of the specified player's glasses, smoothed for on-screen preview. | |
| static GameObject | GetPoseRoot (PlayerIndex playerIndex) |
| Gets the pose root GameObject for the specified player. | |
| static Camera | GetLeftEye (PlayerIndex playerIndex) |
| Gets the left eye camera for the specified player's glasses. | |
| static Camera | GetRightEye (PlayerIndex playerIndex) |
| Gets the right eye camera for the specified player's glasses. | |
| static bool | headPoseUpdated (PlayerIndex playerIndex=PlayerIndex.One) |
| Returns a boolean indication that the head pose was successfully updated. | |
| static void | Reset (GlassesSettings glassesSettings, SpectatorSettings spectatorSettings=null, PlayerIndex playerIndex=PlayerIndex.None) |
| Reset this T:TiltFive.Glasses. | |
| static bool | Validate (GlassesSettings glassesSettings, SpectatorSettings spectatorSettings=null, PlayerIndex playerIndex=PlayerIndex.One) |
| Validates the specified glassesSettings with the specified glasses core. | |
| static void | Update (GlassesSettings glassesSettings, ScaleSettings scaleSettings, GameBoardSettings gameBoardSettings) |
| Updates this T:TiltFive.Glasses. | |
| static bool | IsConnected (PlayerIndex playerIndex=PlayerIndex.One) |
| Indicate if the specified glasses are connected. | |
| static void | ScanForGlasses () |
Properties | |
| static bool | updated [get] |
| Gets a value indicating whether this T:TiltFive.Glasses is updated. | |
| static bool | configured [get] |
| Gets a value indicating whether this T:TiltFive.Glasses is configured. | |
| static Vector3 | position [get] |
| Gets the head pose position. | |
| static Quaternion | rotation [get] |
| Gets the head pose rotation. | |
| static Vector3 | forward [get] |
| Gets the head orientation's forward vector. | |
| static Vector3 | right [get] |
| Gets the head orientation's right vector. | |
| static Vector3 | up [get] |
| Gets the head orientation's up vector. | |
| static Vector3 | leftEyePosition [get] |
| Gets the left eye position. | |
| static Vector3 | rightEyePosition [get] |
| Gets the right eye position. | |
| static bool | glassesAvailable [get] |
| Indicates whether the glasses are plugged in and functioning. | |
| Properties inherited from TiltFive.Singleton< T > | |
| static T | Instance [get] |
Additional Inherited Members | |
| Protected Member Functions inherited from TiltFive.Singleton< T > | |
| Singleton () | |
The Glasses API and runtime.
|
static |
Gets the left eye camera for the specified player's glasses.
| playerIndex |
null if the specified player is not connected.
|
static |
Gets the pose root GameObject for the specified player.
This GameObject's pose is driven by the player's head position over the gameboard. Parented underneath this GameObject are the two eye cameras and an instance of the developer-provided prefab in the player's Glasses settings.
| playerIndex |
null if the specified player is not connected.
|
static |
Gets the right eye camera for the specified player's glasses.
| playerIndex |
null if the specified player is not connected.
|
static |
Returns a boolean indication that the head pose was successfully updated.
true, if the head pose was updated, false otherwise.| glassesHandle | The specified glasses. If null is provided, this uses the default glasses. |
|
static |
Indicate if the specified glasses are connected.
true if the glasses are connected, false otherwise.| glassesHandle | Glasses handle to check. |
|
static |
Indicate if the specified glasses are tracked.
true if the glasses are tracked, false otherwise.| playerIndex | If not provided, the Player 1's glasses are checked. |
|
static |
Reset this T:TiltFive.Glasses.
| glassesSettings | Glasses settings for configuring the specified glassesCore. |
| playerIndex | The specified player. If None is provided, this resets all glasses. |
|
static |
|
static |
Gets the display info associated with the specified player's glasses.
| playerIndex | |
| displayInfo |
false and sets displayInfo to null if there was a problem getting the friendly name for this player; otherwise true. This can happen if the provided PlayerIndex is invalid, the player is not connected, or if the user hasn't yet set a friendly name for this particular set of glasses.
|
static |
Gets the friendly name associated with the specified player's glasses in the Tilt Five Control Panel.
| playerIndex | |
| friendlyName |
false and sets friendlyName to null if there was a problem getting the friendly name for this player; otherwise true. This can happen if the provided PlayerIndex is invalid, the player is not connected, or if the user hasn't yet set a friendly name for this particular set of glasses.
|
static |
Attempts to get the position and orientation of the specified player's glasses.
| playerIndex | |
| pose |
false along with an empty pose if something goes wrong.
|
static |
Attempts to get the position and orientation of the specified player's glasses, smoothed for on-screen preview.
| playerIndex | |
| pose |
false along with an empty pose if something goes wrong.
|
static |
Updates this T:TiltFive.Glasses.
| glassesSettings | Glasses settings for the update. |
|
static |
Validates the specified glassesSettings with the specified glasses core.
true, if the glasses core is valid with the given settings, false otherwise. | glassesSettings | Glasses settings. |
| playerIndex | The specified glasses to validate. If None is provided, this uses the default glasses. |
|
staticget |
Gets a value indicating whether this T:TiltFive.Glasses is configured.
true if player 1's glasses are connected and they've been configured; otherwise, false.
|
staticget |
Gets the head orientation's forward vector.
The forward vector of player 1's glasses (if connected, otherwise the default forward vector)
|
staticget |
Indicates whether the glasses are plugged in and functioning.
|
staticget |
Gets the left eye position.
The left eye position of player 1's glasses (if connected, otherwise the zero vector)
|
staticget |
Gets the head pose position.
The position of player 1's glasses (if connected, otherwise a zero vector)
|
staticget |
Gets the head orientation's right vector.
The right vector of player 1's glasses (if connected, otherwise the default right vector)
|
staticget |
Gets the right eye position.
The right eye position of player 1's glasses (if connected, otherwise the zero vector)
|
staticget |
Gets the head pose rotation.
The rotation of player 1's glasses (if connected, otherwise the identity quaternion)
|
staticget |
Gets the head orientation's up vector.
The up vector of player 1's glasses (if connected, otherwise the default up vector)
|
staticget |
Gets a value indicating whether this T:TiltFive.Glasses is updated.
true if player 1's glasses are connected and their glasses pose has been updated; otherwise, false.