wiki.sine.space | sinespace

Difference between revisions of "Scripting/SPersistence"

From wiki.sine.space
Jump to: navigation, search
(Replaced content with "This page has moved to: https://docs.sine.space/v/scripting/client-scripting/scene/spersistence")
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
The SPersistence class allows you to store persistent data to the avatar.
+
This page has moved to: https://docs.sine.space/v/scripting/client-scripting/scene/spersistence
 
+
=Members=
+
==Get/Set Values==
+
 
+
{{ScriptFunction|void|SetValue|(string key, string value);|Set a value as 'key'='value'.|5=Space.Persistence.SetValue("MyValue", "Hello World");}}
+
{{ScriptFunction|string|GetValue|(string key);|Retrieve the value assigned to 'key'.|5=Space.Log(Space.Persistence.GetValue("MyValue"));}}
+
 
+
==Miscellaneous==
+
{{ScriptFunction|void|UpdateValue|(Action onComplete);|Call the onComplete function upon the server saving a value.}}
+

Latest revision as of 07:21, 19 September 2022

This page has moved to: https://docs.sine.space/v/scripting/client-scripting/scene/spersistence