Right now(until 5.1.0f2), When I make a prefab and attach my script, and build AssetBundle using the new bundle system introduce in Unity5.
I load the prefab from the bundle, instanicate it, the script is attach to it.
When I change the MonoBehavior subclass name(include name or namespace) attach to the prefab, and rebuild the asset bundle, the script reference is missing.
Right now I need remove the script from the prefab, and re-add it, the prefab in the bundle is OK again.
I need carefully check, and avoid no not modify class name , but it really a hard work.
I check the prefab file, when I reattach the script, only the fileID changed.
Maybe the script reference in the AssetBundle can be more smart, and make it more useful.
Is this a 5.1 specific bug? It used to work before?
Either way, could you please submit a proper bug report with clear repro steps and come back with that number so we can look into it? (and better yet if you can tell us if it’s 5.1 specific or not)
Create a new script, and attach it to the cube prefab, unmark the “Simulate AssetBundles”, and build asset bundle, and run AssetLoader scene, everything is OK.
And the I change the script class name, or add an namespace, then delete all asset bundles folder and rebuild them. But when run the AssetLoader scene, the script is missing.
I remove the script from the cube prefab, and re-attach it, and rebuild the AssetBundles, It work fine again.
Could you please provide the bug number? We have many submissions and giving us a specific number to look at makes this easier to find.
However, in explaining this is since 5.0, this is not the appropriate place for this thread. This forum is for 5.1 specific issues, feedback and discussion.