IntValue
IntValue : ValueBase
Overview
An Integer value object stores an integer (numeric) 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 integer states between different scripts and objects.
Description
An Integer value object is used to store and manage integer 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 Integer value object provides convenient value storage, sharing, and change detection functionalities.
Properties
Value
number
It is used to save and handle integer(number) values.
Code Samples
Methods
Events
Changed
The event is called when the value changes.
Parameters
number
value
Code Samples
Last updated