StringValue
StringValue : ValueBase
Overview
A String value object stores a text 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 string states between different scripts and objects.
Description
A String value object is used to store and manage string (text) 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 String value object provides convenient value storage, sharing, and change detection functionalities.
Properties
Value
string
It is used to save and handle string values.
Code Samples
Methods
Events
Changed
The event is called when the value changes.
Parameters
string
value