用序列帧做的动画在真机上渲染出来是个黑方块

模拟器,真机都有问题。但是编译到web预览没问题
let sprite = this.getComponent(cc.Sprite)
if (!sprite) sprite = this.addComponent(cc.Sprite);
sprite.srcBlendFactor = this.srcBlendFactor;
sprite.dstBlendFactor = this.dstBlendFactor;
const anim = this.animation = sprite.addComponent(cc.Animation);
const clip = this.clip = cc.AnimationClip.createWithSpriteFrames(this._getFrames(), this.sample);