Version: 2023.2

AssetBundle.GetAllAssetNames

切换到手册
public string[] GetAllAssetNames ();

描述

Return all Asset names in the AssetBundle.

Only works for normal AssetBundles (non-streamed Scene AssetBundle), otherwise an empty string array is returned. The names are the project-relative path of each Asset file, unless a different name was specified at build time.

Additional resources: AssetBundleBuild.addressableNames