Clear assetbundlename for avatar prefabs

This commit is contained in:
Pascal Serrarens 2022-02-16 15:24:20 +01:00
parent f7b7a5b731
commit aa5b67b3e9

View File

@ -49,7 +49,7 @@ namespace Passer {
AssetImporter assetImporter = AssetImporter.GetAtPath(possession.assetPath); AssetImporter assetImporter = AssetImporter.GetAtPath(possession.assetPath);
if (assetImporter != null) if (assetImporter != null)
// HACK: force avatars to avatarhops because we cannot change assetbundle in package prefabs // HACK: force avatars to avatarhops because we cannot change assetbundle in package prefabs
assetImporter.assetBundleName = "avatarshop"; // "possessions"; //activeScene.name + "_possessions"; assetImporter.assetBundleName = ""; // "possessions"; //activeScene.name + "_possessions";
//Debug.Log(possession.gameObject + ": Set AssetBundleName to " + assetImporter.assetBundleName); //Debug.Log(possession.gameObject + ": Set AssetBundleName to " + assetImporter.assetBundleName);
return; return;
@ -62,7 +62,7 @@ namespace Passer {
string scenePath = activeScene.path; string scenePath = activeScene.path;
AssetImporter assetImporter = AssetImporter.GetAtPath(possession.assetPath); AssetImporter assetImporter = AssetImporter.GetAtPath(possession.assetPath);
// HACK: force avatars to avatarhops because we cannot change assetbundle in package prefabs // HACK: force avatars to avatarhops because we cannot change assetbundle in package prefabs
assetImporter.assetBundleName = "avatarshop"; //"possessions"; //activeScene.name + "_possessions"; assetImporter.assetBundleName = ""; //"possessions"; //activeScene.name + "_possessions";
//Debug.Log(possession.gameObject + ": Set AssetBundleName to " + assetImporter.assetBundleName); //Debug.Log(possession.gameObject + ": Set AssetBundleName to " + assetImporter.assetBundleName);
} }
} }