Tilt Five™ Unity API  1.3.0
 
Loading...
Searching...
No Matches
GameBoardSettings.cs
Go to the documentation of this file.
1using System.Collections;
2using System.Collections.Generic;
3using System;
4using UnityEngine;
5
6namespace TiltFive
7{
8 [System.Serializable]
9 public class GameBoardSettings
10 {
21
29
37 public float gameBoardScale => currentGameBoard != null ? currentGameBoard.localScale : 1f;
38
42 public Vector3 gameBoardCenter => currentGameBoard != null ? currentGameBoard.position : Vector3.zero;
43
47 public Vector3 gameBoardRotation => currentGameBoard != null ? currentGameBoard.rotation.eulerAngles : Vector3.zero;
48
52 [Obsolete("Please use Gameboard.TryGetGameboardType() instead.")]
53 public GameboardType gameboardType => currentGameBoard != null ? currentGameBoard.GameboardType : GameboardType.GameboardType_None;
54
55 public bool copyPlayerOneGameboard = true;
56
57 internal GameBoardSettings Copy()
58 {
59 return (GameBoardSettings)MemberwiseClone();
60 }
61 }
62}
Represents the game board.
Definition: GameBoard.cs:29
GameboardType gameboardTypeOverride
Overrides which gameboard variant is displayed via the gameboard gizmo in the Unity Editor....
Vector3 gameBoardRotation
The game board rotation or focal rotational offset.
Vector3 gameBoardCenter
The game board position or focal position offset.
GameboardType gameboardType
The gameboard configuration, such as LE, XE, or folded XE.
GameBoard currentGameBoard
The game board is the window into the game world, as well as the origin about which the glasses/wand ...
float gameBoardScale
The game board's scale multiplies the perceived size of objects in the scene.
Definition: Log.cs:21
GameboardType
The type of Gameboard being tracked by the glasses.