Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Asset

The base class for all asset types.

Hierarchy

Implements

Index

Accessors

animationData

  • Only populated when this asset is animation data. An asset will only have one of these types specified.

    inheritdoc

    Returns AnimationData

created

  • get created(): Promise<void>
  • A promise that resolves when the asset is finished loading

    Returns Promise<void>

id

  • The unique id of this asset. Use this to reference this asset in actors, etc.

    inheritdoc

    Returns Guid

material

  • Only populated when this asset is a material. An asset will have only one of these types specified.

    inheritdoc

    Returns Material

mesh

  • Only populated when this asset is a mesh. An asset will have only one of these types specified.

    inheritdoc

    Returns Mesh

name

  • get name(): string
  • A human-readable string identifying the asset. Not required to be unique, but can be referenced by name if it is.

    inheritdoc

    Returns string

prefab

  • Only populated when this asset is a prefab. An asset will have only one of these types specified.

    inheritdoc

    Returns Prefab

sound

  • Only populated when this asset is a sound. An asset will have only one of these types specified.

    inheritdoc

    Returns Sound

source

texture

  • Only populated when this asset is a texture. An asset will have only one of these types specified.

    inheritdoc

    Returns Texture