ScriptableNestedObject

ScriptableNestedObject

継承

メソッド

clearScriptData()

getIndexInParent() → {number}

継承元:

現在のオブジェクトの、親の中での添え字を取得します。Lua では、添え字は 1 から始まります。JavaScript では、添え字は 0 から始まります。

戻り値:
number

getParent() → {NestedObject|undefined}

継承元:

NestedObject を取得します。現在のオブジェクトが親に付いていない場合、undefined を返します。

戻り値:
NestedObject | undefined

getScriptData(key) → {any}

パラメータ:
名前 細細
key string

The key to retrieve the value for

戻り値:

The stored value, or undefined if key doesn't exist

any

getScriptDataKeys() → {Array.<string>}

戻り値:

Array of all stored keys

Array.<string>

hasScriptData(key) → {boolean}

パラメータ:
名前 細細
key string

The key to check for

戻り値:

true if the key exists, false otherwise

boolean

isMemoryManaged() → {boolean}

継承元:

現在のオブジェクトがメモリ管理されているかどうか(スクリプト環境によってガベージコレクションされるか)を確認します。

戻り値:
boolean

removeScriptData(key)

パラメータ:
名前 細細
key string

The key to remove

setScriptData(key, value)

パラメータ:
名前 細細
key string

The key to store the value under

value any

The value to store (must be JSON-serializable)