Tilt Five Unity API
1.3.0
|
The Tilt Five manager. More...
Public Member Functions | |
bool | NeedsDriverUpdate () |
Check if a driver update is needed. More... | |
float | GetScaleToUWRLD_UGBD () |
Pose | GetGameboardPose () |
Camera | GetEyeCamera () |
uint | GetSupportedPlayerCount () |
bool | IsActiveAndEnabled () |
Public Attributes | |
PlayerSettings[] | allPlayerSettings = new PlayerSettings[PlayerSettings.MAX_SUPPORTED_PLAYERS] |
uint | supportedPlayerCount = 3 |
SpectatorSettings | spectatorSettings = new SpectatorSettings() |
The spectator camera's runtime configuration data. More... | |
LogSettings | logSettings = new LogSettings() |
The log settings. More... | |
Protected Member Functions | |
override void | Awake () |
Awake this instance. More... | |
Properties | |
PlayerSettings | playerOneSettings [get] |
The first player's runtime configuration data. More... | |
PlayerSettings | playerTwoSettings [get] |
The second player's runtime configuration data. More... | |
PlayerSettings | playerThreeSettings [get] |
The third player's runtime configuration data. More... | |
PlayerSettings | playerFourSettings [get] |
The fourth player's runtime configuration data. More... | |
![]() | |
static T | Instance [get] |
Private Member Functions | |
void | Update () |
Update this instance. More... | |
void | LateUpdate () |
Update this instance after all components have finished executing their Update() functions. More... | |
void | OnEnable () |
Called when the GameObject is enabled. More... | |
void | OnDisable () |
void | OnDestroy () |
void | OnApplicationQuit () |
void | RefreshSpectatorSettings () |
Static Private Member Functions | |
static void | Quit () |
static void | RunOnStart () |
Private Attributes | |
bool | needsDriverUpdateNotifiedOnce = false |
bool | needsDriverUpdateErroredOnce = false |
Static Private Attributes | |
static bool | upgradeInProgress = false |
The Tilt Five manager.
Definition at line 44 of file TiltFiveManager2.cs.
|
protectedvirtual |
Awake this instance.
Reimplemented from TiltFive.SingletonComponent< TiltFiveManager2 >.
Definition at line 138 of file TiltFiveManager2.cs.
References TiltFive.TiltFiveManager2.allPlayerSettings, TiltFive.Logging.LogSettings.level, TiltFive.Logging.Log.LogLevel, TiltFive.TiltFiveManager2.logSettings, TiltFive.Display.SetApplicationInfo(), TiltFive.Logging.LogSettings.TAG, TiltFive.Logging.Log.TAG, and TiltFive.Logging.Log.Warn().
Camera TiltFive.TiltFiveManager2.GetEyeCamera | ( | ) |
Implements TiltFive.ISceneInfo.
Definition at line 547 of file TiltFiveManager2.cs.
References TiltFive.Glasses.GetLeftEye().
Pose TiltFive.TiltFiveManager2.GetGameboardPose | ( | ) |
Implements TiltFive.ISceneInfo.
Definition at line 542 of file TiltFiveManager2.cs.
References TiltFive.GameBoardSettings.gameBoardCenter, TiltFive.GameBoardSettings.gameBoardRotation, TiltFive.PlayerSettings.gameboardSettings, and TiltFive.TiltFiveManager2.playerOneSettings.
float TiltFive.TiltFiveManager2.GetScaleToUWRLD_UGBD | ( | ) |
Implements TiltFive.ISceneInfo.
Definition at line 537 of file TiltFiveManager2.cs.
References TiltFive.GameBoardSettings.gameBoardScale, TiltFive.PlayerSettings.gameboardSettings, TiltFive.ScaleSettings.GetScaleToUWRLD_UGBD(), TiltFive.TiltFiveManager2.playerOneSettings, and TiltFive.PlayerSettings.scaleSettings.
uint TiltFive.TiltFiveManager2.GetSupportedPlayerCount | ( | ) |
Implements TiltFive.ISceneInfo.
Definition at line 552 of file TiltFiveManager2.cs.
References TiltFive.TiltFiveManager2.supportedPlayerCount.
bool TiltFive.TiltFiveManager2.IsActiveAndEnabled | ( | ) |
Implements TiltFive.ISceneInfo.
Definition at line 557 of file TiltFiveManager2.cs.
|
private |
Update this instance after all components have finished executing their Update() functions.
Definition at line 222 of file TiltFiveManager2.cs.
References TiltFive.TiltFiveManager2.allPlayerSettings, TiltFive.TiltFiveManager2.spectatorSettings, and TiltFive.TiltFiveManager2.supportedPlayerCount.
bool TiltFive.TiltFiveManager2.NeedsDriverUpdate | ( | ) |
Check if a driver update is needed.
Note that this can also return false if this has not yet been able to connect to the Tilt Five driver service (compatibility state unknown), so this may need to be called multiple times in that case. This only returns true if we can confirm that the driver is incompatible.
If it is necessary to distinguish between unknown and compatible, use GetServiceCompatibility directly.
Definition at line 249 of file TiltFiveManager2.cs.
References TiltFive.Logging.Log.Error(), TiltFive.NativePlugin.GetServiceCompatibility(), TiltFive.Logging.Log.Info(), TiltFive.TiltFiveManager2.needsDriverUpdateErroredOnce, TiltFive.TiltFiveManager2.needsDriverUpdateNotifiedOnce, and TiltFive.Logging.Log.Warn().
Referenced by TiltFive.TiltFiveManager2.Update().
|
private |
Definition at line 353 of file TiltFiveManager2.cs.
References TiltFive.TiltFiveManager2.OnDisable().
|
private |
Definition at line 348 of file TiltFiveManager2.cs.
|
private |
Definition at line 339 of file TiltFiveManager2.cs.
Referenced by TiltFive.TiltFiveManager2.OnApplicationQuit().
|
private |
Called when the GameObject is enabled.
Definition at line 295 of file TiltFiveManager2.cs.
References TiltFive.TiltFiveManager2.allPlayerSettings, TiltFive.Logging.Log.Error(), TiltFive.Logging.Log.Info(), TiltFive.NativePlugin.SetMaxDesiredGlasses(), TiltFive.TiltFiveManager2.spectatorSettings, and TiltFive.TiltFiveManager2.supportedPlayerCount.
|
staticprivate |
Definition at line 363 of file TiltFiveManager2.cs.
References TiltFive.Logging.Log.Error(), and TiltFive.NativePlugin.UnloadWorkaround().
Referenced by TiltFive.TiltFiveManager2.RunOnStart().
|
private |
Definition at line 385 of file TiltFiveManager2.cs.
References TiltFive.SpectatorSettings.spectatedPlayer, TiltFive.SpectatorSettings.spectatorCamera, TiltFive.TiltFiveManager2.spectatorSettings, TiltFive.TiltFiveManager2.supportedPlayerCount, and TiltFive.Logging.Log.Warn().
Referenced by TiltFive.TiltFiveManager2.Update().
|
staticprivate |
|
private |
Update this instance.
Definition at line 191 of file TiltFiveManager2.cs.
References TiltFive.TiltFiveManager2.allPlayerSettings, TiltFive.TiltFiveManager2.NeedsDriverUpdate(), TiltFive.TiltFiveManager2.RefreshSpectatorSettings(), TiltFive.SpectatorSettings.spectatedPlayer, TiltFive.SpectatorSettings.spectatorCamera, TiltFive.TiltFiveManager2.spectatorSettings, TiltFive.TiltFiveManager2.supportedPlayerCount, and TiltFive.Glasses.TryGetPose().
PlayerSettings [] TiltFive.TiltFiveManager2.allPlayerSettings = new PlayerSettings[PlayerSettings.MAX_SUPPORTED_PLAYERS] |
Definition at line 106 of file TiltFiveManager2.cs.
Referenced by TiltFive.TiltFiveManager2.Awake(), TiltFive.TiltFiveManager2.LateUpdate(), TiltFive.TiltFiveManager2.OnEnable(), and TiltFive.TiltFiveManager2.Update().
LogSettings TiltFive.TiltFiveManager2.logSettings = new LogSettings() |
The log settings.
Definition at line 118 of file TiltFiveManager2.cs.
Referenced by TiltFive.TiltFiveManager2.Awake().
|
private |
Definition at line 131 of file TiltFiveManager2.cs.
Referenced by TiltFive.TiltFiveManager2.NeedsDriverUpdate().
|
private |
Definition at line 130 of file TiltFiveManager2.cs.
Referenced by TiltFive.TiltFiveManager2.NeedsDriverUpdate().
SpectatorSettings TiltFive.TiltFiveManager2.spectatorSettings = new SpectatorSettings() |
The spectator camera's runtime configuration data.
Definition at line 113 of file TiltFiveManager2.cs.
Referenced by TiltFive.TiltFiveManager2.LateUpdate(), TiltFive.TiltFiveManager2.OnEnable(), TiltFive.TiltFiveManager2.RefreshSpectatorSettings(), and TiltFive.TiltFiveManager2.Update().
uint TiltFive.TiltFiveManager2.supportedPlayerCount = 3 |
|
staticprivate |
Definition at line 133 of file TiltFiveManager2.cs.
|
get |
|
get |
The first player's runtime configuration data.
Definition at line 49 of file TiltFiveManager2.cs.
Referenced by TiltFive.TiltFiveManager2.GetGameboardPose(), and TiltFive.TiltFiveManager2.GetScaleToUWRLD_UGBD().
|
get |
|
get |