I have an animation with 10 actions. In Unity Engine, when I place a skeleton animation, for a skeleton animation of the same source image, when I copy the skeleton animation, it will automatically detect other skeleton animations in the same scene (different skeleton animations of the same source image).
For example, I have a skeletal animation (this source image contains 10 actions, I only need to duplicate this skeletal animation 10 times, each skeletal animation will detect animations on other skeletal animations with the same source image in the same scene to achieve each The bones will automatically play one of the 10 actions of the effect.
{If you don't understand what I mean, I can give a similar example to help you understand. For example: In the Unity Engine user interface, I created 10 buttons and set 10 numbers in the background, such as 1-10. When I click "Play", each time the text of each button is automatically assigned to 1-10, and the button text will judge each other, so the numbers on the 10 button texts are different. But the text numbers of these ten buttons include all 1-10, there are no buttons with repeated digital text. You can replace the button in this example with a skeletal animation, and the action in my animation is the "text" in this example, but I do n’t know how many actions are in the animation beforehand)
How do I achieve this? Please leave examples.
test - YouTube
This is the result of my manual setup, and I need to copy skeleton animation to achieve this without any setting of skeleton animation.
Please leave examples.
The above are outdated
//
I have three files
akhee.atlas
akhee.json
akhee.png
I imported them into Unity.
I created a "skeletal animation" in Unity and then selected an image in the SkeletonData asset of the inspector. Then, in the inspector, there is an "animation name" property, and I can select it. I click on the "Animation Name" property and the "Animation Name" property pops up a menu with 10 options on the menu, which means it has 10 "Animation Name"?
Then, my requirement was that I wanted to duplicate the "skeletal animation" UI ten times in the Unity scene. I want to write a script to bind these ten "skeletal animations". When I click Unity's play button, these ten identical "skeletal animations" play different "animation names". And there is no duplication.