Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


rootAssetPaths

Array of paths to the root assets to include in the build.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public string[] rootAssetPaths { readonly get; set; }

Remarks

Set this property to project-relative paths of existing ScriptableObject-derived assets. The build includes each specified asset along with any dependency it references. After you register the content directory, retrieve the root assets at runtime with ContentLoadManager.GetRootAssets.
Only ScriptableObject-derived assets are permitted as roots, to prevent accidental misuse such as using large assets like Textures or Meshes as root assets.
Additional Resources: ContentLoadManager.GetRootAssets