egret升级版本后遇到的问题
升级完egret引擎版本后vscode项目启动不了了,关键是新的demo也启动不了。只能用egret run -a 启动。
egret越来越离谱了,还发现了其他怪异问题。
1、html5编译报错,提示“您可以使用命令 egret publish 命令来发布 Html5 项目”,然后也编译报错,如A.B 一直提示B不存在,得改成 A["B"]
2、骨骼动画有点异常了,需要换个写法
 let container = new egret.DisplayObjectContainer();
        this.me.addChild(container);
        container.x = 250;
        container.y = 350;
        //读取一个骨骼数据,并创建实例显示到舞台
        var skeletonData = RES.getRes("NewProject1_ske_json");
        var textureData = RES.getRes("NewProject1_tex_json");
        var texture = RES.getRes("NewProject1_tex_png");
        var factory = new dragonBones.EgretFactory();
        factory.addDragonBonesData(factory.parseDragonBonesData(skeletonData));
        factory.addTextureAtlasData(factory.parseTextureAtlasData(textureData, texture));
        //let armature = factory.buildArmature("Armature");
        //let armatureDisplay = armature.getDisplay();
        let armatureDisplay=factory.buildArmatureDisplay("Armature");
        //factory.WorldClock.clock.add(armature);
        container.addChild(armatureDisplay);
        armatureDisplay.x = 0;
        armatureDisplay.y = 0;
    
        //启动骨骼动画播放
        console.log(armatureDisplay);
        //armature.animation.isPlaying=true;
        //armature.animation.animations("walk");
        armatureDisplay.animation.play("walk");
