- Изменено
I've got an animation called Bonus_On and
Bonus_Off that affects 3 slots, let's call em:
Bonus_Glow
Bonus_Star
Bonus_Text
When I play Bonus_On, I keyframe attach images like so:
Bonus_Glow
(attach) Bonus_Glow.png
Bonus_Star
(attach) Bonus_Star.png
Bonus_Text
(attach) Bonus_x2.png
When I play Bonus_Off, I keyframe detaching all the images like so:
Bonus_Glow
(attachment nothing)
Bonus_Star
(attachment nothing)
Bonus_Text
(attachment nothing)
The error in my JSON is on the Bonus_Off animation. The JSON says:
"Bonus_Off":{"slots":{"Bonus_Text":{"attachment":[{}]}}},
But that's only 1 of my 3 slots.
If I turn off Animation clean up in my Export settings this appears to fix the error. Now my JSON properly says:
"Bonus_Off":{"slots":{"Bonus_Glow":{"attachment":[{}]},"Bonus_Star":{"attachment":[{}]},"Bonus_Text":{"attachment":[{}]}}},
So I'm keeping Animation clean up unchecked to make any animations work correctly. Is this a bug? Or am I setting up something wrong? Any help would be greatly appreciated!