Skip to main content

UI

info

These docs were last updated for ValenCommons 2.10.0-beta.3.

Button Cooldown​

Call _setCooldown() from a button action to disable the attached Selectable for Cooldown seconds. _resetCooldown() ends it immediately.

Night Mode Slider​

Assign a post-process volume and Slider, then connect the Slider value-change event to OnValueChange(). The volume weight follows the slider value.

note

The slider disables itself on Android because this component uses post-processing that is not available there.

Panel Activator​

Makes every configured Selectable interactable while the component's GameObject is active and non-interactable while it is disabled.