LoadingObject
A class in Root.Township, the global namespace.
Client VR loading screen object: keeps an overlay at floor height under the headset and turns it slowly to face where the player looks.
- Listed in Global namespace: I to L
- Inherits or implements
TempSceneObject
Constructors
| Member | What it is |
|---|---|
LoadingObject() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
8 private and internal fields
| Member | What it is |
|---|---|
private Transform cachedTransform | Transform moved down by the headset height. |
private Transform cameraTransform | Transform that follows the headset. |
private bool isRotating | True until the overlay has caught up with the view direction. |
private Quaternion lastRotation | Current eased rotation of rotatingTransform. |
private MonoBehaviour ovrOverlay | Overlay component, enabled on the first update. |
private Vector3 position | Reused local position for cachedTransform. |
private Transform rotatingTransform | Transform turned to face the view direction. |
private VRTrackedDevice vrTrackedDevice | Headset tracking handle from VRTrackedDevice.AddTracking. |