Assets

Assets manages all assets that aren't code, GameObjects, or Prefabs.

abstract final
class Assets {
MeshAsset[string] meshes;
TextureAsset[string] textures;
MaterialAsset[string] materials;
}

Members

Static functions

get
AssetRefT get(string name)

Get a reference to the asset with the given type and name.

getAsset
AssetT getAsset(string name)

Get the asset with the given type and name.

initialize
void initialize()

Load all assets in the FilePath.ResourceHome folder.

refresh
void refresh()

Refresh the assets that have changed.

shutdown
void shutdown()

Unload and destroy all stored assets.

Static variables

unitSquare
Mesh unitSquare;

Basic quad, generally used for billboarding.

Meta