Class HoldablePhysicalButton
Controls a 3D button that visually responds to interaction by nudging its scale, and provides a hold-to-activate mechanic with a progress indicator.
public class HoldablePhysicalButton : MonoBehaviour
Inheritance
Methods
OnButtonPressInput(CallbackContext)
Handles input actions related to pressing the button. Updates hold timer multiplier and pressed state based on input context.
public void OnButtonPressInput(InputAction.CallbackContext context)
Parameters
| Name | Type | Description |
|---|---|---|
context | InputAction.CallbackContext | Input action callback context. |