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 | |
| PlayerSettings[] | allPlayerSettings = new PlayerSettings[PlayerSettings.MAX_SUPPORTED_PLAYERS] |
| uint | supportedPlayerCount = 3 |
| 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 | |
| PlayerSettings | playerOneSettings [get] |
| The first player's runtime configuration data. | |
| PlayerSettings | playerTwoSettings [get] |
| The second player's runtime configuration data. | |
| PlayerSettings | playerThreeSettings [get] |
| The third player's runtime configuration data. | |
| PlayerSettings | playerFourSettings [get] |
| The fourth player's runtime configuration data. | |
Properties inherited from TiltFive.SingletonComponent< TiltFiveManager2 > | |
| 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 | OnEnable () |
| Called when the GameObject is enabled. | |
| 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.TiltFiveManager2.logSettings, TiltFive.Display.SetApplicationInfo(), TiltFive.Logging.LogSettings.TAG, and TiltFive.Logging.Log.Warn().
| Camera TiltFive.TiltFiveManager2.GetEyeCamera | ( | ) |
Implements TiltFive.ISceneInfo.
Definition at line 554 of file TiltFiveManager2.cs.
References TiltFive.Glasses.GetLeftEye().
| Pose TiltFive.TiltFiveManager2.GetGameboardPose | ( | ) |
Implements TiltFive.ISceneInfo.
Definition at line 549 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 544 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 559 of file TiltFiveManager2.cs.
References TiltFive.TiltFiveManager2.supportedPlayerCount.
| bool TiltFive.TiltFiveManager2.IsActiveAndEnabled | ( | ) |
Implements TiltFive.ISceneInfo.
Definition at line 564 of file TiltFiveManager2.cs.
|
private |
Update this instance after all components have finished executing their Update() functions.
Definition at line 229 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 256 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 360 of file TiltFiveManager2.cs.
References TiltFive.TiltFiveManager2.OnDisable().
|
private |
Definition at line 355 of file TiltFiveManager2.cs.
|
private |
Definition at line 346 of file TiltFiveManager2.cs.
Referenced by TiltFive.TiltFiveManager2.OnApplicationQuit().
|
private |
Called when the GameObject is enabled.
Definition at line 302 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 370 of file TiltFiveManager2.cs.
References TiltFive.Logging.Log.Error(), and TiltFive.NativePlugin.UnloadWorkaround().
Referenced by TiltFive.TiltFiveManager2.RunOnStart().
|
private |
Definition at line 392 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 |
Definition at line 387 of file TiltFiveManager2.cs.
References TiltFive.TiltFiveManager2.Quit().
|
private |
Update this instance.
Definition at line 198 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.TryGetPreviewPose().
| 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 |
The fourth player's runtime configuration data.
Definition at line 94 of file TiltFiveManager2.cs.
|
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 |
The third player's runtime configuration data.
Definition at line 79 of file TiltFiveManager2.cs.
|
get |
The second player's runtime configuration data.
Definition at line 64 of file TiltFiveManager2.cs.