|
I have a script that automatically generates animation clips from spritesheets. I want to create a GameObject add the created clips to it and save it as a prefab. All this should happen in the script, no manual work. This works only as long as clip name and AnimationState name are the same e.g.:
will work. But I if I do this:
It will add the correct animation states to Animation, but when I save it as prefab (or press apply, doesn't matter) the prefab will show an empty animations list. Is this a bug, or is there an explanation why this can't work?
(comments are locked)
|

I think you should post larger snippet of code, because in this case it isn't clear where the clip comes from and where clipname is used.