Asset

Description

The abstract base (type AbstractAsset) for everything loadable into the Asset Registries — fonts, textures, samplers, meshes. It defines three load entry points that concrete assets implement; which one the registry calls depends on whether it’s loading a named asset, the engine default, or a whole directory.

API summary

MemberKindSummary
LoadAsset(AbstractAsset asset, string name, string path)abstractLoad one named asset from a path.
LoadDefault()abstractLoad the engine’s built-in default for this asset type.
LoadAll(string path)abstractDiscover and load every asset of this type under a directory.

Fields & Properties

None — pure abstract contract.

Methods

All three methods are abstract; see the concrete implementations for behavior.

  • Asset Registries — stores and hands out assets
  • Serializer — binary (de)serialization used by some asset types
  • Implementors: FontAsset, TextureAsset, SamplerAsset