Skip to main content

ScriptableObjectClass

A script class that does not represent any particular game object.

The scriptable object is automatically synchronized to all clients.

The class can receive events sent with sm.event.sendToScriptableObject.

The fields below are accessed using self.fieldName in the ScriptableObjectClass script:

Fields:
TypeNameDescription
ScriptableObjectscriptableObjectThe ScriptableObject belonging to this class instance.
NetworknetworkA Network object that can be used to send data between client and server.
StoragestorageA server-side Storage object that can be used to save and load data to/from the world database.
anydataData from the data entry in the object's JSON file entry.
anyparamsParameters given to sm.scriptableObject.createScriptableObject.
Constants:

isSaveObject

Callbacks:

The ScriptableObjectClass does not have any special callbacks.
See Common Callbacks for available callbacks for this script class.