Preparing search index...

    Manages project assets — creating, importing, finding, and organizing assets within the project.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    assets: Editor.Assets.Asset[]

    Array of all assets currently loaded in the project.

    assetsDirectory: Path

    Absolute path to the project's assets directory.

    cacheDirectory: Path

    Absolute path to the project's asset cache directory.

    Methods

    • Creates a new native asset of the specified type at the given destination path and returns it.

      Parameters

      • assetType: string
      • baseName: string
      • relativeDestinationDir: SourcePath

      Returns Editor.Assets.Asset

    • Returns true if the object is of the specified type.

      Parameters

      • type: string

      Returns boolean

    • Removes an asset from the project.

      Parameters

      Returns void