ScriptableObjectClass
A script class that doesn't represent any particular game object.
Kind: API page
Environments: Game
Game
The scriptable object is automatically synchronized to all clients.
Can receive events sent with sm.event.sendToScriptableObject.
Fields
| Name | Type | Description |
|---|---|---|
scriptableObject |
ScriptableObject | The ScriptableObject belonging to this class instance. |
network |
Network | A Network object that can be used to send messages between client and server. |
storage |
Storage | (Server side only, if isSaveObject is enabled) A Storage object that can be used to store data for the next time loading this object after being unloaded. |
data |
any | Data from the "data" json element. |
params |
any | Parameter sent to sm.scriptableObject.createScriptableObject. |