Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetAllAssetNames()

Return all Asset names in the AssetBundle.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AssetBundleModule
public string[] GetAllAssetNames()

Returns

Type

Description

string[]An array of the names of all the assets in the AssetBundle.

Remarks

The names are the project-relative path of each Asset file, unless a different name was specified at build time.
If the AssetBundle contains Scenes this returns an empty string array.
Additional Resources: _addressableNames