mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
Added getter for tracks.
http://www.esotericsoftware.com/forum/viewtopic.php?f=7&t=1982
This commit is contained in:
parent
6f51d79d9c
commit
68d829556a
@ -40,6 +40,9 @@ namespace Spine {
|
||||
public AnimationStateData Data { get { return data; } }
|
||||
public float TimeScale { get { return timeScale; } set { timeScale = value; } }
|
||||
|
||||
/// <summary>The list of tracks that have animations, which may contain nulls.</summary>
|
||||
public List<TrackEntry> Tracks { get { return tracks; } }
|
||||
|
||||
public event EventHandler<StartEndArgs> Start;
|
||||
public event EventHandler<StartEndArgs> End;
|
||||
public event EventHandler<EventTriggeredArgs> Event;
|
||||
|
||||
@ -276,6 +276,11 @@ public class AnimationState {
|
||||
return data;
|
||||
}
|
||||
|
||||
/** Returns the list of tracks that have animations, which may contain nulls. */
|
||||
public Array<TrackEntry> getTracks () {
|
||||
return tracks;
|
||||
}
|
||||
|
||||
public String toString () {
|
||||
StringBuilder buffer = new StringBuilder(64);
|
||||
for (int i = 0, n = tracks.size; i < n; i++) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user