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 | |
ScaleSettings | scaleSettings |
The scale conversion runtime configuration data. More... | |
GameBoardSettings | gameBoardSettings |
The game board runtime configuration data. More... | |
GlassesSettings | glassesSettings |
The glasses runtime configuration data. More... | |
WandSettings | primaryWandSettings |
WandSettings | secondaryWandSettings |
SpectatorSettings | spectatorSettings = new SpectatorSettings() |
The spectator camera's runtime configuration data. More... | |
GraphicsSettings | graphicsSettings = new GraphicsSettings() |
Project-wide graphics settings related to Tilt Five. More... | |
LogSettings | logSettings = new LogSettings() |
The log settings. More... | |
Protected Member Functions | |
override void | Awake () |
Awake this instance. More... | |
Properties | |
WandSettings | leftWandSettings [get, set] |
The wand runtime configuration data for the left hand wand. More... | |
WandSettings | rightWandSettings [get, set] |
The wand runtime configuration data for the right hand wand. More... | |
Properties inherited from TiltFive.SingletonComponent< TiltFiveManager > | |
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 | GetLatestPoseData () |
Obtains the latest pose for all trackable objects. More... | |
void | OnEnable () |
Called when the GameObject is enabled. More... | |
void | OnDisable () |
void | OnDestroy () |
void | OnApplicationQuit () |
void | RefreshSpectatorSettings () |
void | RefreshPlayerSettings () |
Static Private Member Functions | |
static void | Quit () |
static void | RunOnStart () |
Private Attributes | |
bool | needsDriverUpdateNotifiedOnce = false |
bool | needsDriverUpdateErroredOnce = false |
The Tilt Five manager.
Definition at line 46 of file TiltFiveManager.cs.
|
protectedvirtual |
Awake this instance.
Reimplemented from TiltFive.SingletonComponent< TiltFiveManager >.
Definition at line 122 of file TiltFiveManager.cs.
References TiltFive.GlassesSettings.cameraTemplate, TiltFive.GlassesSettings.glassesMirrorMode, TiltFive.SpectatorSettings.glassesMirrorMode, TiltFive.TiltFiveManager.glassesSettings, TiltFive.TiltFiveManager.graphicsSettings, TiltFive.Logging.LogSettings.level, TiltFive.Logging.Log.LogLevel, TiltFive.TiltFiveManager.logSettings, TiltFive.PlayerSettings.PlayerIndex, TiltFive.TiltFiveManager.RefreshPlayerSettings(), TiltFive.SpectatorSettings.spectatedPlayer, TiltFive.SpectatorSettings.spectatorCamera, TiltFive.TiltFiveManager.spectatorSettings, TiltFive.Logging.LogSettings.TAG, TiltFive.Logging.Log.TAG, and TiltFive.Logging.Log.Warn().
Camera TiltFive.TiltFiveManager.GetEyeCamera | ( | ) |
Implements TiltFive.ISceneInfo.
Definition at line 512 of file TiltFiveManager.cs.
References TiltFive.Glasses.GetLeftEye().
Pose TiltFive.TiltFiveManager.GetGameboardPose | ( | ) |
Implements TiltFive.ISceneInfo.
Definition at line 507 of file TiltFiveManager.cs.
References TiltFive.GameBoardSettings.gameBoardCenter, TiltFive.GameBoardSettings.gameBoardRotation, and TiltFive.TiltFiveManager.gameBoardSettings.
|
private |
Obtains the latest pose for all trackable objects.
Definition at line 249 of file TiltFiveManager.cs.
References TiltFive.TiltFiveManager.gameBoardSettings, TiltFive.TiltFiveManager.glassesSettings, TiltFive.TiltFiveManager.leftWandSettings, TiltFive.TiltFiveManager.rightWandSettings, TiltFive.TiltFiveManager.scaleSettings, and TiltFive.Wand.Update().
float TiltFive.TiltFiveManager.GetScaleToUWRLD_UGBD | ( | ) |
Implements TiltFive.ISceneInfo.
Definition at line 502 of file TiltFiveManager.cs.
References TiltFive.GameBoardSettings.gameBoardScale, TiltFive.TiltFiveManager.gameBoardSettings, TiltFive.ScaleSettings.GetScaleToUWRLD_UGBD(), and TiltFive.TiltFiveManager.scaleSettings.
uint TiltFive.TiltFiveManager.GetSupportedPlayerCount | ( | ) |
Implements TiltFive.ISceneInfo.
Definition at line 517 of file TiltFiveManager.cs.
Referenced by TiltFive.TiltFiveManager.OnEnable(), and TiltFive.TiltFiveManager.RefreshSpectatorSettings().
bool TiltFive.TiltFiveManager.IsActiveAndEnabled | ( | ) |
Implements TiltFive.ISceneInfo.
Definition at line 522 of file TiltFiveManager.cs.
|
private |
Update this instance after all components have finished executing their Update() functions.
Definition at line 237 of file TiltFiveManager.cs.
References TiltFive.TiltFiveManager.spectatorSettings.
bool TiltFive.TiltFiveManager.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 267 of file TiltFiveManager.cs.
References TiltFive.Logging.Log.Error(), TiltFive.Logging.Log.Info(), TiltFive.TiltFiveManager.needsDriverUpdateErroredOnce, TiltFive.TiltFiveManager.needsDriverUpdateNotifiedOnce, and TiltFive.Logging.Log.Warn().
Referenced by TiltFive.TiltFiveManager.Update().
|
private |
|
private |
Definition at line 345 of file TiltFiveManager.cs.
|
private |
Definition at line 337 of file TiltFiveManager.cs.
Referenced by TiltFive.TiltFiveManager.OnApplicationQuit().
|
private |
Called when the GameObject is enabled.
Definition at line 313 of file TiltFiveManager.cs.
References TiltFive.Logging.Log.Error(), TiltFive.TiltFiveManager.GetSupportedPlayerCount(), TiltFive.TiltFiveManager.glassesSettings, TiltFive.Logging.Log.Info(), and TiltFive.Glasses.Reset().
|
staticprivate |
Definition at line 360 of file TiltFiveManager.cs.
References TiltFive.Logging.Log.Error().
Referenced by TiltFive.TiltFiveManager.RunOnStart().
|
private |
Definition at line 405 of file TiltFiveManager.cs.
References TiltFive.PlayerSettings.gameboardSettings, TiltFive.TiltFiveManager.gameBoardSettings, TiltFive.PlayerSettings.glassesSettings, TiltFive.TiltFiveManager.glassesSettings, TiltFive.PlayerSettings.leftWandSettings, TiltFive.TiltFiveManager.leftWandSettings, TiltFive.PlayerSettings.PlayerIndex, TiltFive.PlayerSettings.rightWandSettings, TiltFive.TiltFiveManager.rightWandSettings, TiltFive.PlayerSettings.scaleSettings, and TiltFive.TiltFiveManager.scaleSettings.
Referenced by TiltFive.TiltFiveManager.Awake(), and TiltFive.TiltFiveManager.Update().
|
private |
Definition at line 382 of file TiltFiveManager.cs.
References TiltFive.GlassesSettings.cameraTemplate, TiltFive.TiltFiveManager.GetSupportedPlayerCount(), TiltFive.GlassesSettings.glassesMirrorMode, TiltFive.SpectatorSettings.glassesMirrorMode, TiltFive.TiltFiveManager.glassesSettings, TiltFive.SpectatorSettings.spectatedPlayer, TiltFive.SpectatorSettings.spectatorCamera, TiltFive.TiltFiveManager.spectatorSettings, and TiltFive.Logging.Log.Warn().
Referenced by TiltFive.TiltFiveManager.Update().
|
staticprivate |
|
private |
Update this instance.
Definition at line 186 of file TiltFiveManager.cs.
References TiltFive.Glasses.GetPoseRoot(), TiltFive.TiltFiveManager.graphicsSettings, TiltFive.TiltFiveManager.NeedsDriverUpdate(), TiltFive.TiltFiveManager.RefreshPlayerSettings(), TiltFive.TiltFiveManager.RefreshSpectatorSettings(), TiltFive.SpectatorSettings.spectatedPlayer, TiltFive.SpectatorSettings.spectatorCamera, TiltFive.TiltFiveManager.spectatorSettings, TiltFive.Glasses.TryGetPreviewPose(), and TiltFive.Logging.Log.Warn().
GameBoardSettings TiltFive.TiltFiveManager.gameBoardSettings |
The game board runtime configuration data.
Definition at line 56 of file TiltFiveManager.cs.
Referenced by TiltFive.TiltFiveManager.GetGameboardPose(), TiltFive.TiltFiveManager.GetLatestPoseData(), TiltFive.TiltFiveManager.GetScaleToUWRLD_UGBD(), and TiltFive.TiltFiveManager.RefreshPlayerSettings().
GlassesSettings TiltFive.TiltFiveManager.glassesSettings |
The glasses runtime configuration data.
Definition at line 61 of file TiltFiveManager.cs.
Referenced by TiltFive.TiltFiveManager.Awake(), TiltFive.TiltFiveManager.GetLatestPoseData(), TiltFive.TiltFiveManager.OnEnable(), TiltFive.TiltFiveManager.RefreshPlayerSettings(), and TiltFive.TiltFiveManager.RefreshSpectatorSettings().
GraphicsSettings TiltFive.TiltFiveManager.graphicsSettings = new GraphicsSettings() |
Project-wide graphics settings related to Tilt Five.
Definition at line 99 of file TiltFiveManager.cs.
Referenced by TiltFive.TiltFiveManager.Awake(), and TiltFive.TiltFiveManager.Update().
LogSettings TiltFive.TiltFiveManager.logSettings = new LogSettings() |
The log settings.
Definition at line 104 of file TiltFiveManager.cs.
Referenced by TiltFive.TiltFiveManager.Awake().
|
private |
Definition at line 115 of file TiltFiveManager.cs.
Referenced by TiltFive.TiltFiveManager.NeedsDriverUpdate().
|
private |
Definition at line 114 of file TiltFiveManager.cs.
Referenced by TiltFive.TiltFiveManager.NeedsDriverUpdate().
WandSettings TiltFive.TiltFiveManager.primaryWandSettings |
Definition at line 67 of file TiltFiveManager.cs.
ScaleSettings TiltFive.TiltFiveManager.scaleSettings |
The scale conversion runtime configuration data.
Definition at line 51 of file TiltFiveManager.cs.
Referenced by TiltFive.TiltFiveManager.GetLatestPoseData(), TiltFive.TiltFiveManager.GetScaleToUWRLD_UGBD(), and TiltFive.TiltFiveManager.RefreshPlayerSettings().
WandSettings TiltFive.TiltFiveManager.secondaryWandSettings |
Definition at line 69 of file TiltFiveManager.cs.
SpectatorSettings TiltFive.TiltFiveManager.spectatorSettings = new SpectatorSettings() |
The spectator camera's runtime configuration data.
Definition at line 94 of file TiltFiveManager.cs.
Referenced by TiltFive.TiltFiveManager.Awake(), TiltFive.TiltFiveManager.LateUpdate(), TiltFive.TiltFiveManager.RefreshSpectatorSettings(), and TiltFive.TiltFiveManager.Update().
|
getset |
The wand runtime configuration data for the left hand wand.
Definition at line 74 of file TiltFiveManager.cs.
Referenced by TiltFive.TiltFiveManager.GetLatestPoseData(), and TiltFive.TiltFiveManager.RefreshPlayerSettings().
|
getset |
The wand runtime configuration data for the right hand wand.
Definition at line 84 of file TiltFiveManager.cs.
Referenced by TiltFive.TiltFiveManager.GetLatestPoseData(), and TiltFive.TiltFiveManager.RefreshPlayerSettings().