StringValue
A container object for a single string.
Memory category | Instances |
---|
Member index 3
Description
A StringValue is an object whose purpose is to store a single Lua string. The length of the string can't be more than 200,000 characters (this will cause a "String too long" error). Like all "-Value" objects, this single value is stored in the Value property. The Changed event for this (and other objects like it) will fire with the new value being stored in the object, instead of a string representing the property being changed.
If the string is too long to be displayed in the Value field within Properties window, it will partially show the string contents followed by an ellipsis (...).
History 10
- 553 Change PreferredDescriptor of changed from to Changed
- 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 StringValue from Instance to ValueBase
- 50 Add changed
- 47 Add Changed
- 47 Add Value
- 47 Add StringValue
Members 3
Changed
Parameters (1) | |
---|---|
value | string |
Fired whenever the StringValue.Value of the StringValue 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 StringValue changes and to track the different values that it may change to.
For instance, this may be useful in games that rely on StringValues to track values such as NPC or item names.
Equivalent changed events exist for similar objects, such as NumberValue and BoolValue, depending on what object type best suits the need.
Thread safety | Unsafe |
---|
Value
Type | Default | |
---|---|---|
string |
The stored string.
Thread safety | ReadSafe |
---|---|
Category | Data |
Loaded/Saved | true |
changed
Parameters (1) | |
---|---|
value | string |
Thread safety | Unsafe |
---|