ClientScriptableObject

Associated namespace: sm.clientScriptableObject

A userdata object representing a scriptable object.

Values:

Functions:

Operations:

OperationReturn typeDescription
ClientScriptableObject == ClientScriptableObjectbooleanChecks if two instances of ClientScriptableObject refer to the same ClientScriptableObject.

clientPublicData table

Get:

Client only

Returns public data from a client scriptable object.

Set:

Client only

Sets public data on a client scriptable object.


id number

Get:

Client only

Returns the id of a client scriptable object.


world World

Get:

Client only

Returns the worldId of a client scriptable object.


destroy(clientScriptableObject)

Client only

Destroys a client scriptable Object.

Parameters:

TypeNameDescription
ClientScriptableObjectclientScriptableObjectThe scriptable object.

getClientPublicData(scriptableObject)

Client only

Returns public data from a client scriptable object.

Parameters:

TypeNameDescription
ScriptableObjectscriptableObjectThe scriptableObject.

Returns:

TypeDescription
tableThe client public data.

getData(scriptableObject)

Client only

Returns json data from a client scriptableObject.

Parameters:

TypeNameDescription
ScriptableObjectscriptableObjectThe scriptableObject.

Returns:

TypeDescription
tableThe json data.

getId(clientScriptableObject)

Client only

Returns the id of a client scriptable object.

Parameters:

TypeNameDescription
ClientScriptableObjectclientScriptableObjectThe scriptable object.

Returns:

TypeDescription
numberid The clientScriptableObject id.

getWorld(scriptableObject)

Client only

Returns the worldId of a client scriptable object.

Parameters:

TypeNameDescription
ScriptableObjectscriptableObjectThe scriptable object.

Returns:

TypeDescription
Worldworld The world.

setClientPublicData(scriptableObject, data)

Client only

Sets public data on a client scriptable object.

Parameters:

TypeNameDescription
ScriptableObjectscriptableObjectThe scriptableObject.
tabledataThe client public data.