Home > other >  Spine SkeletonAnimation loaded callback and clean up memory
Spine SkeletonAnimation loaded callback and clean up memory

Time:09-23

How to get at the end of the animation callback and animation, find the skeletonNode - & gt; SetCompleteListener, but I don't know how to use, I'm not playing games, never used before Spine [6] s:

SkeletonNode=SkeletonAnimation: : createWithFile (" skeleton. Json ", "skeleton. Atlas");
AddChild (skeletonNode);
SkeletonNode - & gt; SetPosition (Vec2 (750/2 1334/2));

SkeletonNode - & gt; SetAnimation (0, "animation", true);

O great god teach

CodePudding user response:

The delete skeletonNode;
  • Related