JsonAsset
APJS Script API reference for the JsonAsset class.
| Type | Name | Interface Description |
|---|---|---|
| Variables | json: any | • Function: Gets the parsed JSON object or array represented by this asset. Each access parses the current raw text and returns a new JS value; modifying the returned object does not write back to the asset. Returns |
| Functions | constructor() |
Examples
constructor()
let obj = new APJS.JsonAsset();
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use JsonAsset here
}
onUpdate(deltaTime: number) {
}
}