Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


assetNames

Asset names which belong to the given AssetBundle.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Field
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public string[] assetNames

Remarks

Please use the asset path relative to the project folder, for example "Assets/MyPrefab.prefab".
An AssetBundle can contain either Scene files or Asset files, but not a mix of the two.
This same path is used to retrieve assets from a loaded AssetBundle, for example with AssetBundle.LoadAsset, unless an alternative name has been specified in _addressableNames.