Пример #1
0
 static public void CopyPath()
 {
     if (Selection.activeObject != null)
     {
         string        path = AssetDatabase.GetAssetPath(Selection.activeObject);
         AssetImporter ai   = AssetImporter.GetAtPath(path);
         if (ai != null)
         {
             ai.assetBundleName = UnityUtility.ConvertAssetPathToBundleName(path.Replace("Assets/", ""));
         }
     }
 }