ExternalArrayData

Implement this to back a ScriptableObject with data that lives outside the engine.

Inheritors

Properties

Link copied to clipboard
abstract val arrayLength: Int

How many elements there are.

Functions

Link copied to clipboard
abstract fun getArrayElement(index: Int): Any?

The element at index. It has to be a type script understands: a number, a string or a Scriptable. Never called with an out-of-range index.

Link copied to clipboard
abstract fun setArrayElement(index: Int, value: Any?)

Writes value at index. Never called with an out-of-range index. The implementation checks the type of value and converts it if it has to.