ProtectedconstructorSnap HiddenReadonlyassetsArray of all assets currently loaded in the project.
ReadonlyassetsAbsolute path to the project's assets directory.
ReadonlycacheAbsolute path to the project's asset cache directory.
Creates a new native asset of the specified type at the given destination path and returns it.
Packages a set of assets into a single package file at the specified destination and returns the resulting import metadata.
Exports the specified assets to an absolute destination path and returns metadata for the exported assets.
Exports top-level scene objects as assets to an absolute destination path and returns the resulting import metadata.
Finds an existing imported copy of a file by its absolute source path, optionally scoped to a destination directory.
OptionalrelativeDestinationDir: SourcePathOptionaloptions: anyFind a copy, if it exists, of a file.
OptionalrelativeDestinationDir: SourcePathOptionaloptions: anyReturns import metadata for the asset at the given relative file path.
Returns the name of this object's type.
Imports an external file into the project synchronously and returns its import metadata.
OptionalrelativeDestinationDir: SourcePathOptionalresultType: ResultTypeOptionalimportSettings: ImportSettingsImports an external file into the project asynchronously and returns a promise resolving to its import metadata.
OptionalrelativeDestinationDir: SourcePathOptionalresultType: ResultTypeOptionalimportSettings: ImportSettingsInstantiates an asset into the scene and returns the resulting scene object.
Optionalparams: InstantiationParamsReturns true if the object is of the specified type.
Returns true if this object refers to the same instance as the given object.
Moves an asset to a new destination path within the project.
Renames an asset to the specified name.
Saves a scene object as a new prefab asset at the specified destination.
OptionalpreferredName: stringSaves a scene object as a variant of an existing prefab asset.
OptionalpreferredName: stringUnpacks a packaged asset, extracting its contents into the project.
Manages project assets — creating, importing, finding, and organizing assets within the project.