Description
Supported Script Types: Interface Scripts • Client Entity Scripts • Avatar Scripts
TheSettings
API provides a facility to store and retrieve values that persist between Interface runs.Methods
Name | Return Value | Summary |
---|---|---|
getValue
|
string | number | boolean | object |
Retrieves the value from a named setting. |
setValue
|
None |
Stores a value in a named setting. If the setting already exists, its value is overwritten. If the value is
|
Method Details
(static) getValue( key, defaultValueopt ) → {string|number|boolean|object}
Returns: The value stored in the named setting if it exists, otherwise the defaultValue .
|
|||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves the value from a named setting. Parameters
Example
|
(static) setValue( key, value ) | |||||||||
---|---|---|---|---|---|---|---|---|---|
Stores a value in a named setting. If the setting already exists, its value is overwritten. If the value is
Parameters
Example
|