Tilt Five Unity API
1.3.0
|
Represents the game board. More...
Classes | |
struct | GameboardDimensions |
Static Public Member Functions | |
static bool | TryGetGameboardType (out GameboardType gameboardType) |
Attempts to check the latest glasses pose for the current gameboard type, such as LE, XE, or none. More... | |
static bool | TryGetGameboardType (PlayerIndex playerIndex, out GameboardType gameboardType) |
static bool | TryGetGameboardDimensions (GameboardType gameboardType, out GameboardDimensions gameboardDimensions) |
Attempts to obtain the physical dimensions for a particular gameboard type. More... | |
Public Attributes | |
bool | ShowGizmo |
Shows the game board gizmo in the editor. More... | |
bool | ShowGrid |
float | GridHeightOffset = 0f |
bool | StickyHeightOffset = true |
float | GizmoOpacity = 0.75f |
Sets the opacity of the game board gizmo in the editor. More... | |
GameboardType | GameboardType |
The gameboard configuration, such as LE, XE, or folded XE. More... | |
Static Private Attributes | |
static Dictionary< PlayerIndex, GameboardType > | playerGameboards = new Dictionary<PlayerIndex, GameboardType>() |
Additional Inherited Members | |
![]() | |
void | Awake () |
![]() | |
void | UnifyScale () |
Synchronizes the component values of the game object's local scale vector (e.g. [1,2,3] becomes [3,3,3]). More... | |
![]() | |
float | localScale [get, set] |
The size of the object as a single float value, rather than a scale vector. More... | |
Vector3 | position [get, set] |
The position vector for the associated transform. More... | |
Quaternion | rotation [get, set] |
The rotation vector for the associated transform. More... | |
Represents the game board.
Definition at line 28 of file GameBoard.cs.
|
static |
Attempts to obtain the physical dimensions for a particular gameboard type.
gameboardType | |
gameboardDimensions |
Definition at line 155 of file GameBoard.cs.
References TiltFive.Logging.Log.Error(), and TiltFive.NativePlugin.GetGameboardDimensions().
|
static |
Attempts to check the latest glasses pose for the current gameboard type, such as LE, XE, or none.
gameboardType | Output gameboard type. Contains GameboardType.GameboardType_None if no pose was provided, which can happen if the user looks away and the head tracking camera loses sight of the gameboard. |
Definition at line 130 of file GameBoard.cs.
|
static |
Definition at line 135 of file GameBoard.cs.
References TiltFive.GameBoard.playerGameboards.
GameboardType TiltFive.GameBoard.GameboardType |
The gameboard configuration, such as LE, XE, or folded XE.
Definition at line 57 of file GameBoard.cs.
float TiltFive.GameBoard.GizmoOpacity = 0.75f |
Sets the opacity of the game board gizmo in the editor.
Definition at line 50 of file GameBoard.cs.
float TiltFive.GameBoard.GridHeightOffset = 0f |
Definition at line 41 of file GameBoard.cs.
|
staticprivate |
Definition at line 95 of file GameBoard.cs.
Referenced by TiltFive.GameBoard.TryGetGameboardType().
bool TiltFive.GameBoard.ShowGizmo |
Shows the game board gizmo in the editor.
Definition at line 36 of file GameBoard.cs.
bool TiltFive.GameBoard.ShowGrid |
Definition at line 39 of file GameBoard.cs.
bool TiltFive.GameBoard.StickyHeightOffset = true |
Definition at line 42 of file GameBoard.cs.