BoolValue
BoolValue : ValueBase
Overview
A Bool value object stores a true/false value that can be shared across scripts, and automatically triggers an event when its value changes to enable responsive actions. This makes it easy to manage and synchronize boolean states between different scrips and objects.
Description
A Bool value object is used to store and manage boolean (true/false) values, allowing multiple scripts to share the same value easily. This object can be placed in a shared location so that different parts of the program can access or modify the value as needed. When the value changes, a Changed event is triggered, enabling automatic handling of follow-up actions such as updating the UI or executing additional logic. This approach is also useful for synchronizing state between different components or systems. In summary, the Bool value object provides convenient value storage, sharing, and change detection functionalities.
Properties
Value
bool
It is used to save and handle boolean values.
Code Samples
Methods
Events
Changed
The event is called when the value changes.
Parameters
bool
value
Code Samples
Last updated