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:
Type | Name | Description |
---|---|---|
ScriptableObject | scriptableObject | The ScriptableObject belonging to this class instance. |
Network | network | A Network object that can be used to send data between client and server. |
Storage | storage | A server-side Storage object that can be used to save and load data to/from the world database. |
any | data | Data from the data entry in the object's JSON file entry. |
any | params | Parameters given to sm.scriptableObject.createScriptableObject. |
Callbacks:
The ScriptableObjectClass
does not have any special callbacks.
See Common Callbacks for available callbacks for this script class.