Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

BuildContentDirectoryParameters.rootAssetPaths

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public string[] rootAssetPaths;

Description

Array of paths to the root assets to include in the build.

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