GetAllAssetBundleNames()
Obtain all the AssetBundle names registered in the Asset Database.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public static string[] GetAllAssetBundleNames()
Returns
Type | Description |
|---|---|
| string[] | Returns an array of AssetBundle names. |
Examples
using UnityEditor;using UnityEngine;public class GetAssetBundleNames{ [MenuItem("Assets/Get Asset Bundle names")] static void GetNames() { var names = AssetDatabase.GetAllAssetBundleNames(); foreach (string name in names) Debug.Log("Asset Bundle: " + name); }}