BoolValue
A container object for a single boolean value.
Memory category | Instances |
---|
Member index 3
Description
An instance which is used to hold a boolean value. The value can be used for many things, including to communicate between scripts.
History 11
- 553 Change PreferredDescriptor of changed from to Changed
- 553 Change Default of Value from to false
- 486 Change ThreadSafety of Value from ReadOnly to ReadSafe
- 462 Change ThreadSafety of changed from to Unsafe
- 462 Change ThreadSafety of Changed from to Unsafe
- 462 Change ThreadSafety of Value from to ReadOnly
- 335 Change Superclass of BoolValue from Instance to ValueBase
- 50 Add changed
- 47 Add Changed
- 47 Add Value
- 47 Add BoolValue
Members 3
Changed
Parameters (1) | |
---|---|
value | bool |
Fired whenever the BoolValue.Value of the BoolValue is changed. It will run with the new value being stored in the argument object, instead of a string representing the property being changed.
This event, like other changed events, can be used to track when an BoolValue changes and to track the different values that it may change to.
For instance, this may be useful in games that rely on BoolValues to track game states and values, such as switch or enabled states.
Equivalent changed events exist for similar objects, such as NumberValue and StringValue, depending on what object type best suits the need.
Thread safety | Unsafe |
---|
Value
Type | Default | |
---|---|---|
bool | false |
Used to hold a boolean value.
Thread safety | ReadSafe |
---|---|
Category | Data |
Loaded/Saved | true |
changed
Parameters (1) | |
---|---|
value | bool |
Thread safety | Unsafe |
---|