Skip to content

Asset beta ​

Interface of @v12-engine/editor

ts
export interface Asset

A file the editor knows, wherever it is from

Members ​

credit ​

ts
credit?: string;

Who made the file and under which licence, for a file of the assets package; a credit of a game's own file otherwise

group ​

ts
group?: string;

A file of @v12-engine/assets: its group, what that is called, and who made it under which licence; a credit of the game's own file otherwise, as assets.json says

groupName ​

ts
groupName?: string;

The name of the group of an assets-package file, as shown to the person

id ​

ts
id: string;

<place>:<path>: stable while the file is where it is

kind ​

ts
kind: AssetKind;

What the file is: model, texture, sound and so on, by its extension

modified ​

ts
modified: number;

When the file was last changed, in milliseconds since the epoch

path ​

ts
path: string;

Its path in its place: models/trees/oak.glb

place ​

ts
place: AssetPlace;

Where the asset lives: the map, the game, the shared project or the engine's assets package

size ​

ts
size: number;

The file's size in bytes

tags ​

ts
tags: string[];

Words it is found by, kept in the game's assets.json (the game's own files alone)