foriero

Hello Herald,

Would it be possible for Skeleton Graphics and Skeleton Animation to have an array of animations that we can set for tracks?

The array would hold a class

class TrackAnimation{
public string name;
public int track;
public float timeScale;
public bool loop
}

Right now you allow to set only initial animation for Track0 ( Starting Animation, Starting Loop, Time Scale ) which for the sake of backward compatibility we can leave there. But we also need to set on the onset ( and in the edit mode ) the other tracks of the skeleton to different animations. So it would be very helpful if we have an array where we can define what is played on different tracks. Given that the zero frame needs to be reflected in edit mode for those tracks. Does it make sense?

Thank you
Founder & CEO Foriero s.r.o.
https://studio.foriero.com
アバター
foriero
  • 記事: 288

Harald

We see your point. Unfortunately, exposing additional initial animations on other layers goes against the concept of the Beginner API under which the private string _animationName member has been added in the first place. It is already adding redundancy, but for the purpose of providing an easier entry point. Providing additional member variables for other animation layers adds more redundancy while not lowering the entry point for beginners any further, so we would really like to avoid it.

The best way would be to either add your own custom additional component (e.g. SetInitialAnimations) which then needs to apply the respective animations once, or create your own subclass, derived from SkeletonAnimation or SkeletonGraphic respectively, with only little additional override code.
アバター
Harald

Harri
  • 記事: 1500

foriero

I see. So we pay for Pro editor version but have beginners runtime components. :-) :-) :-) Guys, we have so complicated UI that without this feature we have to run the unity editor to see if we set the initial state correctly. I can think of making this feature beginners friendly. May be just put it in backlog for future once you have more time.

Screenshot 2020-02-25 at 23.49.14.png


This has around 30 pieces that we animate on separate tracks.
添付ファイルを見るにはパーミッションが必要です
Founder & CEO Foriero s.r.o.
https://studio.foriero.com
アバター
foriero
  • 記事: 288

Harald

That is a valid point. :) I have added an issue ticket here:
https://github.com/EsotericSoftware/spine-runtimes/issues/1629

In case you have any suggestions of how the Inspector interface could be implemented in a way that
a) does not distract beginners that are just learning and
b) would be comfortable enough for Pro editor users ;)
please post them here or add them to the ticket as a comment. I'm not sure I have considered all possibilities yet on how the Inspector UI part could look like.
アバター
Harald

Harri
  • 記事: 1500

foriero

Nice. :-) thank you Herald. I read your suggestion how to implement it on github and seems valid.
Founder & CEO Foriero s.r.o.
https://studio.foriero.com
アバター
foriero
  • 記事: 288

Harald

No problem, thanks for the feedback.
アバター
Harald

Harri
  • 記事: 1500


Return to Unity