wiki.sine.space | sinespace

Scripting/SPersistence

From wiki.sine.space
Revision as of 16:01, 11 September 2017 by Ashasekayi (Talk | contribs)

Jump to: navigation, search

The SPersistence class allows you to store persistent data to the avatar.

Members

Get/Set Values

SetValue

void SetValue (string key, string value);

No documentation

Space.Persistence.SetValue("MyValue", "Hello World");


GetValue

string GetValue (string key);

Retrieve the value assigned to 'key'.

Space.Log(Space.Persistence.GetValue("MyValue"));


Miscellaneous

UpdateValue

void UpdateValue (Action onComplete);

Call the onComplete function upon the server saving a value.

No example provided yet