private static readonly int _Color | Shader ID of _Color. |
private static HashSet<AnalyticalButton> activeButtons | Every button being updated for fingertip presses. |
private static List<AnalyticalButton> activeButtonsCache | Scratch copy of activeButtons used while iterating. |
private Color activeColor | Colour when usable, if colour changing is on. |
private Material activeMaterial | Material when usable, if colour changing is off. |
private Renderer androidButtonRenderer | Second button renderer kept out of atlasing; kept from an older field name. |
private Collider buttonCollider | Collider that moves as the button is pushed and is tested against the fingertips. Backing field for ButtonCollider. |
private Renderer buttonRenderer | Renderer whose colour or material shows whether the button is usable. Backing field for ButtonRenderer. |
private Timeline.IEntry delay | Scheduled call that ends the enable delay. |
private float enableDelay | Seconds after enabling before the button can be pressed. |
private Vector.Axis freeAxis | Local axis the button collider slides along when pushed. |
private bool hasDelayedOnce | Set after the first enable delay, for isEnableDelayOnlyOnTheFirstTime. |
private Color inActiveColor | Colour when not usable, if colour changing is on. |
private Material inactiveMaterial | Material when not usable, if colour changing is off. |
private bool isActiveAtAllScales | Lets the button fire even when its world scale is 0.9 or less; otherwise small (shrunk) buttons don't fire. |
private bool isChangingColorOnEnable | Shows usable state by colour; when off, by swapping materials. |
private bool isDelaying | True while waiting out the enable delay. |
private bool isEnabled | Whether the button can be used. Backing field for IsEnabled. |
private bool isEnableDelayOnlyOnTheFirstTime | Only applies the enable delay the first time the button is enabled. |
private bool isFree | Set once no fingertip overlaps the button after enabling, so a finger already inside can't press it. |
private bool isIgnoringDelay | Stops OnEnable from restarting the delay while the button enables itself. |
private bool isPhysicallyPressed | Whether the button is pushed past the press threshold and not yet back past release. |
private bool isPlayingDefaultSounds | Plays the default button sounds when no custom sound is set. |
private bool isPlayingSounds | Whether pressing and releasing play sounds. |
private WorldSpaceTriangle lastLeftTriangle | Fingertip triangle of the left hand from the last update. |
private WorldSpaceTriangle lastRightTriangle | Fingertip triangle of the right hand from the last update. |
private float maxDepth | Collider position along the free axis when the button is fully out. |
private float minDepth | Collider position along the free axis when the button is fully pushed in. |
private AltaEvent onBecameActive | Event raised when the button finishes its enable animation. |
private static Action onFinishedFrame | One-shot callback run after all buttons update in a frame; nothing sets it in this build. |
private AltaEvent pressed | Event raised on press; exposed as Pressed. |
private SoundEffectSet pressedSound | Custom sound for pressing. |
private float pressSpeed | Not used in this build. |
private float pressThreshold | How far pushed (0 to 1) the button must be to count as pressed. |
private MaterialPropertyBlock propertyBlock | Property block used to set the button colour. |
private AltaEvent released | Event raised on release; exposed as Released. |
private SoundEffectSet releasedSound | Custom sound for releasing. |
private float releaseThreshold | Pushed amount (0 to 1) below which a pressed button releases. |
private static IUnityUpdateMethod updateButtons | Handle of the shared UpdateButtons late update; removed when no buttons are tracked. |