GhostHandController
A class in Root.Township, Alta.Character.
Shows the translucent ghost hand at the controller position and fades it by how far the real hand is from it. Only active on the local player; skipped on headless servers.
- Listed in Players and characters
- Inherits or implements
CharacterComponentController
Constructors
| Member | What it is |
|---|---|
GhostHandController() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
5 private and internal fields
| Member | What it is |
|---|---|
private static int _FadeProgress | Shader property ID for the fade amount. |
private Controller controller | Backing field for Controller. |
private float desiredAlpha | Last requested alpha, reapplied when focus returns. |
private RendererGroup ghostHandRenderers | Backing field for GhostHandRenderers. |
private bool hasFocus | False while the Quest app lacks input focus. |
Properties
| Member | What it is |
|---|---|
Controller Controller { get; } | The hand controller on the same object. |
RendererGroup GhostHandRenderers { get; } | Renderers that make up the ghost hand. |
bool IsUpdatingAlpha { get; set; } | When true, the alpha follows the distance between the ghost and master hand each update. |
GhostHandSettings Settings { get; } | Shortcut to PlayerSettings.GhostHandSettings. |
Methods
3 private and internal methods
Used in
Members of other types that take, return or hold a GhostHandController: