- Home /
Question by
wiliem40 · Aug 17, 2018 at 05:41 AM ·
animationprefabassetbundleanimator controllerprefab-instance
Animation controller attached to prefab instance doesn't work
I have a prefab that is a part of an asset bundle. The prefab looks like this:
Now at runtime I load the asset bundle and load the prefab from it. Then I create an instance of this prefab. Which looks like this:
But if I try to open the Animator window I get the following:
Cannot show controller from asset bundle
And trying to play an animation or set a variable through the controller gives the following warning: Animator is not playing an AnimatorController
I'm using GetComponent to get the Animator attached to the instance.
Any idea what am I doing wrong? Thanks!
unity-prefab.png
(71.4 kB)
unity-instance.png
(58.5 kB)
Comment