文档

Unity Engine

Download Unity

Unity Engine

RootAssetReferences

For each entry of ContentLoadState.Files in ContentDirectoryLoadInfo.LoadState, how many of its LoadedContentFileInfo.ReferenceCount are holds that Unity keeps on root assets.
阅读时间1 分钟最后更新于 3 天前

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