Skip to content

Interface: EditorAssetApi ​

Editor asset facade: runtime resolve/load plus workspace operations.

Methods ​

resolve() ​

ts
resolve(ref): Promise<EditorAssetInfo | null>;

Parameters ​

ParameterType
refstring

Returns ​

Promise<EditorAssetInfo | null>


loadTexture() ​

ts
loadTexture(ref): Promise<unknown>;

Parameters ​

ParameterType
refstring

Returns ​

Promise<unknown>


load() ​

ts
load(ref): Promise<unknown>;

Parameters ​

ParameterType
refstring

Returns ​

Promise<unknown>


list()? ​

ts
list?(query?, kind?): Promise<EditorAssetInfo[]>;

Parameters ​

ParameterType
query?string
kind?string

Returns ​

Promise<EditorAssetInfo[]>


pick()? ​

ts
pick?(
   kind?, 
   currentUid?, 
   options?
): Promise<string | null>;

Parameters ​

ParameterType
kind?string
currentUid?string | null
options?EditorAssetPickOptions

Returns ​

Promise<string | null>


resolvePath()? ​

ts
resolvePath?(ref): Promise<string | null>;

Parameters ​

ParameterType
refstring

Returns ​

Promise<string | null>

Suity developer documentation · API generated by TypeDoc