Interface: EditorAssetApi
Editor asset facade: runtime resolve/load plus workspace operations.
Methods
resolve()
ts
resolve(ref): Promise<EditorAssetInfo | null>;Parameters
| Parameter | Type |
|---|---|
ref | string |
Returns
Promise<EditorAssetInfo | null>
loadTexture()
ts
loadTexture(ref): Promise<unknown>;Parameters
| Parameter | Type |
|---|---|
ref | string |
Returns
Promise<unknown>
load()
ts
load(ref): Promise<unknown>;Parameters
| Parameter | Type |
|---|---|
ref | string |
Returns
Promise<unknown>
list()?
ts
list?(query?, kind?): Promise<EditorAssetInfo[]>;Parameters
| Parameter | Type |
|---|---|
query? | string |
kind? | string |
Returns
Promise<EditorAssetInfo[]>
pick()?
ts
pick?(
kind?,
currentUid?,
options?
): Promise<string | null>;Parameters
| Parameter | Type |
|---|---|
kind? | string |
currentUid? | string | null |
options? | EditorAssetPickOptions |
Returns
Promise<string | null>
resolvePath()?
ts
resolvePath?(ref): Promise<string | null>;Parameters
| Parameter | Type |
|---|---|
ref | string |
Returns
Promise<string | null>
