RootAssetReferences
For each entry of ContentLoadState.Files in ContentDirectoryLoadInfo.LoadState, how many of its LoadedContentFileInfo.ReferenceCount are holds that Unity keeps on root assets.
Read time 1 minuteLast updated 3 days ago
Definition
- Type: Property
- Namespace: Unity.Loading
- Assembly: UnityEngine.ContentLoadModule
public List<int> RootAssetReferences { get; }
Remarks
Unity loads the root assets of a content directory when it is registered, and holds them until it is unregistered. The holds that remain once these are subtracted come from load requests made by game code.
Additional Resources: ContentLoadManager.GetRootAssets