sm.scriptableObject
ScriptableObject creation
Server-only
createScriptableObject
sm.scriptableObject.createScriptableObject( uuid, params, world )
Create a new Scriptable Object.
Parameters:
| Name | Type | Description |
|---|---|---|
uuid |
Uuid | ScriptableObject uuid. |
params (optional) |
any | self.params on scriptable object. |
world (optional) |
World | The world this script belongs to, for world dependent api calls. Defaults to sm.world.ids.noWorld |
Returns:
| Type | Description |
|---|---|
| ScriptableObject | The scriptable object. |