Change scene possessions AssetBundlename to scenename+_possessions

This commit is contained in:
Pascal Serrarens 2022-02-17 09:50:50 +01:00
parent b01ebb0570
commit dd759b878f

View File

@ -49,9 +49,9 @@ 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 = ""; // "possessions"; //activeScene.name + "_possessions"; assetImporter.assetBundleName = activeScene.name + "_possessions";
//Debug.Log(possession.gameObject + ": Set AssetBundleName to " + assetImporter.assetBundleName); Debug.Log(possession.gameObject + ": Set AssetBundleName to " + assetImporter.assetBundleName);
return; return;
} }
@ -62,8 +62,8 @@ 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 = ""; //"possessions"; //activeScene.name + "_possessions"; assetImporter.assetBundleName = activeScene.name + "_possessions";
//Debug.Log(possession.gameObject + ": Set AssetBundleName to " + assetImporter.assetBundleName); Debug.Log(possession.gameObject + ": Set AssetBundleName to " + assetImporter.assetBundleName);
} }
} }