实用AnimationClip createWithSpriteFrames 加载plist 序列帧,但动画因为丢失位置信息,动画会抖动?还是我操作方式有问题?
texturePacker 剪切模式使用的 crop,keep postion
如果剪切模式用 none的话就不会出错,
解决了,
var sp = u.ani_state_.m_pCharSprite.addComponent(cc.Sprite);
sp.trim = false;
sp.sizeMode = cc.Sprite.SizeMode.RAW;
改成raw很关键,还有texture packer 要实用trim,倒腾一下午,,
1赞
我也是 捣鼓半天
在 cocos 3.8 下 还是无效
since v3.7.0, this is an engine private interface that will be removed in the future.
源码说放弃这个了,很奇怪
已解决,放弃Animation,自己封装实现