[펌] Set Asset Bundle Name form Editor Menu Item Script
Unity3D/AssetBundle / 2018. 4. 23. 16:11
[MenuItem("AssetBundles/Set Asset Bundle From File Name",false, 0)] static void SetAssetBundlesFromFileNames() { if (Selection.assetGUIDs.Length > 0) { foreach (ObjectassetinSelection.objects) { string path = AssetDatabase.GetAssetPath(asset); AssetImporter assetImporter = AssetImporter.GetAtPath(path); assetImporter.assetBundleName = asset.name; Debug.Log(Selection.assetGUIDs.Length + " Asset Bundles Assigned"); } } else { Debug.Log ("No Assets Selected"); } }
[출처] https://forum.unity.com/threads/set-asset-bundle-name-form-editor-menu-item-script.333297/
반응형
'Unity3D > AssetBundle' 카테고리의 다른 글
[에셋] AssetBundle Manager & Example Scenes (0) | 2018.03.15 |
---|---|
[에셋] Asset Bundle Browser (0) | 2018.03.15 |
[Unity Technologies] AssetBundleDemo (0) | 2017.11.10 |
[Unity3D] UnityWebRequest를 이용해서 원격 서버에서 받아온 에셋 번들을 로컬 저장소에 저장하는 방법(5.6기준) (0) | 2017.05.10 |
[삽질/수정중] Load External AssetBundles in Unity 5.4 (0) | 2017.04.28 |