NumberValue
NumberValue : ValueBase
Overview
A number value object stores a number value that can be shared across scripts and automatically triggers an event when its value changes, enabling responsive actions. This design makes it easy to manage and synchronize number states between different scripts and objects.
Description
A number value object is used to store and manage number values, allowing multiple scripts to share the same numeric 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 especially useful for synchronizing state between different components or systems. In summary, the number value object provides convenient value storage, sharing, and change detection functionalities.
Properties
Value
number
It is used to save and handle number values.
Code Samples
Methods
Events
Changed
The event is called when the value changes.
Parameters
number
value
Code Samples
Last updated