Documentation

Unity Engine

Download Unity

Unity Engine

UnityEngine.ContentLoadModule

The ContentLoad module implements the ContentLoadInterface class and related APIs to load data from ContentFiles.
Read time 2 minutesLast updated 3 hours ago

Definition

  • Type: Module

Classes

Class

Description

ContentDirectoryDiagnosticsDescribes what is loaded from a content directory, including the holds that Unity keeps on its root assets.
ContentDirectoryLoadInfoWhat is loaded from one content directory, which of it Unity holds for the directory's root assets, and the build that produced the directory.
ContentLoadInterfaceAPI Interface for loading and unloading Content files.
ContentLoadManagerThe ContentLoadManager offers APIs for accessing content that has been built. It is primarily used to register content directories and access root content.
ContentLoadStateA snapshot of what is loaded from one content directory: the content files in memory, the loaded scenes, and the dependencies between them.
Loadable<T>Serialized reference that loads a specific
T
asset from registered built content on demand instead of pulling it in with direct references.

Structs

Struct

Description

ContentDirectoryHandleA handle that references a registered content directory.
ContentFileThis struct acts like a handle for accessing a file loaded by ContentLoadInterface.LoadContentFileAsync. You can use it to access the status and results of the load operation.
ContentFileIdentityIdentifies a content file of a content directory build, as listed in LoadedContentFileInfo.Identity.
ContentFileUnloadHandleA handle that can be used to track the progress of an unload operation. This is returned from ContentFile.UnloadAsync.
ContentSceneFileThe handle returned from ContentLoadInterface.LoadSceneAsync. You can use this handle to access the status and results of the load operation.
ContentSceneParametersThis struct collects all the ContentLoadInterface.LoadSceneAsync parameters in to a single place.
LoadedContentFileInfoDescribes one content file that is in memory, as listed in ContentLoadState.Files.
LoadedSceneInfoDescribes one scene loaded from a content directory, as listed in ContentLoadState.Scenes.

Enums

Enum

Description

LoadableStatusDescribes the current loading phase of a Loadable<T> after Loadable<T>.Load or Loadable<T>.LoadAsync is used.
LoadingStatusThe loading status of a ContentFile.
SceneLoadingStatusThe loading status of a ContentSceneFile. This is accessed by ContentSceneFile.Status.