[LayaAir 2.0]spine动画放大后,遮罩显示不正常

项目中部分spine动画在缩放后设置遮罩,动画角色会显示不全,如下图,左边设置了遮罩,右边未设置遮罩
QQ图片20190730175809.png

详细设置见下图代码和附件DEMO中的TestScene.scene文件
export default class GameUI extends Laya.Scene {
constructor() {
super();
//设置单例的引用方式,方便其他类引用
GameUI.instance = this;
//关闭多点触控,否则就无敌了
Laya.MouseManager.multiTouchEnabled = false;
//加载场景文件
this.loadScene("test/TestScene.scene");

onEnable() {
        this.loadActor(this.actor1,"comp/r_01_01.sk");
        this.loadActor(this.actor2,"comp/r_01_01.sk");

    loadActor(parent,path){
        const
        Templet = Laya.Templet,
        Event = Laya.Event;
        let mFactory = new Templet();
        mFactory.on(Event.COMPLETE, this, this.parseComplete,[parent,mFactory]);
        mFactory.on(Event.ERROR, this, this.onError);
        mFactory.loadAni(path);
    } 
    onError() {
        trace("error");
    } 
    parseComplete(parent,mFactory) {
        // 创建模式为1,使用动画自己的缓冲区,可以启用换装(相当耗费内存)
        let mArmature = mFactory.buildArmature(1);
        parent.addChild(mArmature);
        mArmature.pos(parent.x+parent.width/2, parent.y+parent.height/2);
        mArmature.scale(3, 3);
        mArmature.on(Laya.Event.STOPPED, this, this.completeHandler);
        mArmature.play(1, true);
    } 
    completeHandler() {
    } 
}

YUIL

赞同来自:

PS:secne中的遮罩控件大小比spine动画角色大很多

要回复问题请先

商务合作
商务合作