I need to display the image at the end of the animation without showing any animation - something like a static image of how animation node looks at the end.
Right now I am doing something like:
SkeletonAnimation* node = ....
node.timeScale = 10; //fast-fwd
node.scale = 0; //hide
spTrackEntry *trackEntry = [node setAnimationForTrack:0 name:@"test1" loop:NO];
[node setListenerForEntry:trackEntry onEnd:int trackIndex {
node.scale = 1.0; //show
}];
Is there a better way to do it? Thanks.