The Tilt Five manager. More...
Public Member Functions | |
| bool | NeedsDriverUpdate () |
| Check if a driver update is needed. | |
| float | GetScaleToUWRLD_UGBD () |
| Pose | GetGameboardPose () |
| Camera | GetEyeCamera () |
| uint | GetSupportedPlayerCount () |
| bool | IsActiveAndEnabled () |
| float | GetScaleToUWRLD_UGBD () |
| Pose | GetGameboardPose () |
| Camera | GetEyeCamera () |
| uint | GetSupportedPlayerCount () |
| bool | IsActiveAndEnabled () |
Public Attributes | |
| ScaleSettings | scaleSettings |
| The scale conversion runtime configuration data. | |
| GameBoardSettings | gameBoardSettings |
| The game board runtime configuration data. | |
| GlassesSettings | glassesSettings |
| The glasses runtime configuration data. | |
| WandSettings | primaryWandSettings |
| WandSettings | secondaryWandSettings |
| SpectatorSettings | spectatorSettings = new SpectatorSettings() |
| The spectator camera's runtime configuration data. | |
| LogSettings | logSettings = new LogSettings() |
| The log settings. | |
Protected Member Functions | |
| override void | Awake () |
| Awake this instance. | |
| virtual void | Awake () |
Properties | |
| WandSettings | leftWandSettings [get, set] |
| The wand runtime configuration data for the left hand wand. | |
| WandSettings | rightWandSettings [get, set] |
| The wand runtime configuration data for the right hand wand. | |
Properties inherited from TiltFive.SingletonComponent< TiltFiveManager > | |
| static T | Instance [get] |
Private Member Functions | |
| void | Update () |
| Update this instance. | |
| void | LateUpdate () |
| Update this instance after all components have finished executing their Update() functions. | |
| void | GetLatestPoseData () |
| Obtains the latest pose for all trackable objects. | |
| void | OnEnable () |
| Called when the GameObject is enabled. | |
| 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 |
| PlayerSettings | playerSettings = new PlayerSettings() |
The Tilt Five manager.
Definition at line 45 of file TiltFiveManager.cs.
|
protectedvirtual |
Awake this instance.
Reimplemented from TiltFive.SingletonComponent< TiltFiveManager >.
Definition at line 117 of file TiltFiveManager.cs.
References TiltFive.GlassesSettings.cameraTemplate, TiltFive.GlassesSettings.glassesMirrorMode, TiltFive.TiltFiveManager.glassesSettings, TiltFive.Logging.LogSettings.level, TiltFive.TiltFiveManager.logSettings, TiltFive.PlayerSettings.PlayerIndex, TiltFive.TiltFiveManager.playerSettings, TiltFive.TiltFiveManager.RefreshPlayerSettings(), TiltFive.Display.SetApplicationInfo(), TiltFive.Logging.LogSettings.TAG, and TiltFive.Logging.Log.Warn().
| Camera TiltFive.TiltFiveManager.GetEyeCamera | ( | ) |
Implements TiltFive.ISceneInfo.
Definition at line 470 of file TiltFiveManager.cs.
References TiltFive.Glasses.GetLeftEye().
| Pose TiltFive.TiltFiveManager.GetGameboardPose | ( | ) |
Implements TiltFive.ISceneInfo.
Definition at line 465 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 206 of file TiltFiveManager.cs.
References TiltFive.TiltFiveManager.gameBoardSettings, TiltFive.TiltFiveManager.glassesSettings, TiltFive.TiltFiveManager.leftWandSettings, TiltFive.TiltFiveManager.rightWandSettings, TiltFive.TiltFiveManager.scaleSettings, TiltFive.Glasses.Update(), and TiltFive.Wand.Update().
| float TiltFive.TiltFiveManager.GetScaleToUWRLD_UGBD | ( | ) |
Implements TiltFive.ISceneInfo.
Definition at line 460 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 475 of file TiltFiveManager.cs.
Referenced by TiltFive.TiltFiveManager.OnEnable(), and TiltFive.TiltFiveManager.RefreshSpectatorSettings().
| bool TiltFive.TiltFiveManager.IsActiveAndEnabled | ( | ) |
Implements TiltFive.ISceneInfo.
Definition at line 480 of file TiltFiveManager.cs.
|
private |
Update this instance after all components have finished executing their Update() functions.
Definition at line 194 of file TiltFiveManager.cs.
References TiltFive.TiltFiveManager.playerSettings, and 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 224 of file TiltFiveManager.cs.
References TiltFive.Logging.Log.Error(), TiltFive.NativePlugin.GetServiceCompatibility(), TiltFive.Logging.Log.Info(), TiltFive.TiltFiveManager.needsDriverUpdateErroredOnce, TiltFive.TiltFiveManager.needsDriverUpdateNotifiedOnce, and TiltFive.Logging.Log.Warn().
Referenced by TiltFive.TiltFiveManager.Update().
|
private |
Definition at line 308 of file TiltFiveManager.cs.
References TiltFive.TiltFiveManager.OnDisable().
|
private |
Definition at line 303 of file TiltFiveManager.cs.
|
private |
Definition at line 295 of file TiltFiveManager.cs.
Referenced by TiltFive.TiltFiveManager.OnApplicationQuit().
|
private |
Called when the GameObject is enabled.
Definition at line 270 of file TiltFiveManager.cs.
References TiltFive.Logging.Log.Error(), TiltFive.TiltFiveManager.GetSupportedPlayerCount(), TiltFive.TiltFiveManager.glassesSettings, TiltFive.Logging.Log.Info(), TiltFive.Glasses.Reset(), and TiltFive.NativePlugin.SetMaxDesiredGlasses().
|
staticprivate |
Definition at line 318 of file TiltFiveManager.cs.
References TiltFive.Logging.Log.Error(), and TiltFive.NativePlugin.UnloadWorkaround().
Referenced by TiltFive.TiltFiveManager.RunOnStart().
|
private |
Definition at line 363 of file TiltFiveManager.cs.
References TiltFive.TiltFiveManager.gameBoardSettings, TiltFive.TiltFiveManager.glassesSettings, TiltFive.TiltFiveManager.leftWandSettings, TiltFive.TiltFiveManager.playerSettings, TiltFive.TiltFiveManager.rightWandSettings, and TiltFive.TiltFiveManager.scaleSettings.
Referenced by TiltFive.TiltFiveManager.Awake().
|
private |
Definition at line 340 of file TiltFiveManager.cs.
References TiltFive.GlassesSettings.cameraTemplate, TiltFive.TiltFiveManager.GetSupportedPlayerCount(), TiltFive.GlassesSettings.glassesMirrorMode, TiltFive.TiltFiveManager.glassesSettings, TiltFive.SpectatorSettings.spectatedPlayer, TiltFive.TiltFiveManager.spectatorSettings, and TiltFive.Logging.Log.Warn().
Referenced by TiltFive.TiltFiveManager.Update().
|
staticprivate |
Definition at line 335 of file TiltFiveManager.cs.
References TiltFive.TiltFiveManager.Quit().
|
private |
Update this instance.
Definition at line 171 of file TiltFiveManager.cs.
References TiltFive.TiltFiveManager.NeedsDriverUpdate(), TiltFive.TiltFiveManager.playerSettings, TiltFive.TiltFiveManager.RefreshSpectatorSettings(), TiltFive.SpectatorSettings.spectatedPlayer, TiltFive.SpectatorSettings.spectatorCamera, TiltFive.TiltFiveManager.spectatorSettings, and TiltFive.Glasses.TryGetPreviewPose().
| GameBoardSettings TiltFive.TiltFiveManager.gameBoardSettings |
The game board runtime configuration data.
Definition at line 55 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 60 of file TiltFiveManager.cs.
Referenced by TiltFive.TiltFiveManager.Awake(), TiltFive.TiltFiveManager.GetLatestPoseData(), TiltFive.TiltFiveManager.OnEnable(), TiltFive.TiltFiveManager.RefreshPlayerSettings(), and TiltFive.TiltFiveManager.RefreshSpectatorSettings().
| LogSettings TiltFive.TiltFiveManager.logSettings = new LogSettings() |
The log settings.
Definition at line 98 of file TiltFiveManager.cs.
Referenced by TiltFive.TiltFiveManager.Awake().
|
private |
Definition at line 109 of file TiltFiveManager.cs.
Referenced by TiltFive.TiltFiveManager.NeedsDriverUpdate().
|
private |
Definition at line 108 of file TiltFiveManager.cs.
Referenced by TiltFive.TiltFiveManager.NeedsDriverUpdate().
|
private |
Definition at line 112 of file TiltFiveManager.cs.
Referenced by TiltFive.TiltFiveManager.Awake(), TiltFive.TiltFiveManager.LateUpdate(), TiltFive.TiltFiveManager.RefreshPlayerSettings(), and TiltFive.TiltFiveManager.Update().
| WandSettings TiltFive.TiltFiveManager.primaryWandSettings |
Definition at line 66 of file TiltFiveManager.cs.
| ScaleSettings TiltFive.TiltFiveManager.scaleSettings |
The scale conversion runtime configuration data.
Definition at line 50 of file TiltFiveManager.cs.
Referenced by TiltFive.TiltFiveManager.GetLatestPoseData(), TiltFive.TiltFiveManager.GetScaleToUWRLD_UGBD(), and TiltFive.TiltFiveManager.RefreshPlayerSettings().
| WandSettings TiltFive.TiltFiveManager.secondaryWandSettings |
Definition at line 68 of file TiltFiveManager.cs.
| SpectatorSettings TiltFive.TiltFiveManager.spectatorSettings = new SpectatorSettings() |
The spectator camera's runtime configuration data.
Definition at line 93 of file TiltFiveManager.cs.
Referenced by TiltFive.TiltFiveManager.LateUpdate(), TiltFive.TiltFiveManager.RefreshSpectatorSettings(), and TiltFive.TiltFiveManager.Update().
|
getset |
The wand runtime configuration data for the left hand wand.
Definition at line 73 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 83 of file TiltFiveManager.cs.
Referenced by TiltFive.TiltFiveManager.GetLatestPoseData(), and TiltFive.TiltFiveManager.RefreshPlayerSettings().