大约有 592 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0068 秒)
Laya_社区(424) Laya3.0_api(61) Laya2.0_示例(32) Laya_示例(31) Laya2.0_文档(30) Laya3.0_文档(11) laya_api(2) Laya2.0_api(1)
... true;//小程序使用,非常费 let sprite = new Laya.Sprite(); sprite.graphics.drawTexture(rankTexture, 0, 0, rankTexture.width, rankTexture.height); this._content.addChild(sprite); sprite.pos(40, 190);报:this.bitmap activeResource is not a function 2019-09-20 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20190920
...RROR, this, this.onError); this.templet.loadAni(this.aniUrl); this.maskBox.graphics.drawRect(0,0,this.width,this.height,'#ffffff'); this.mask = this.maskBox; this.maskBox.alpha=0; // this.show(); } private parseComplete():void { //创建模式为1,可以启用换装 this.skeleton =this.templet.bui...
来源: Laya_社区 发布时间: 20180824
...es("../../../../res/apes/monkey2.png"); var ape:Sprite = new Sprite(); ape.graphics.drawTexture(t,0,0); Laya.stage.addChild(ape); ape.pos(200, 0); })); 这可以正常运行,但是我把外面的 load 函数去掉,将第二个参数中的函数内容独立后却不能显示图片:var t:Textur...
来源: Laya_社区 发布时间: 20170804
...用showAll后留白部分的颜色问题 IDE1.7.8 json图集加载问题 graphics alpha 问题 关于apk打包动画卡的问题 event自定义事件的问题 问题状态 最新活动: 2017-03-14 21:27 浏览: 997 关注: 2 人
来源: Laya_社区 发布时间: 20170314
...tion () { function tankSprite() { this.speed_x = 3; this.speed_y = 4; this.graphics.drawRect(0, 0, 90, 90, '#aabbcc', '#bbccdd', 1); Laya.stage.addChild(this); var lastTimestamp = 0; var count = 0; var totale = 0; Laya.timer.frameLoop(1, this, function test() { var deltaTime = new Date().getTime() -...
来源: Laya_社区 发布时间: 20170920
...个时间轴动画里创建的多个动画,怎么分别调用?如图 graphics alpha 问题 写了个边缘光的自定义shader,有很多问题,帮忙看一下 问题状态 最新活动: 2018-06-22 14:57 浏览: 657 关注: 2 人
来源: Laya_社区 发布时间: 20180622
sprite添加texture后,sprite无法触发点击事件? this.item.graphics.drawTexture(Laya.loader.getRes(IMG_RES[this.name])); Laya.stage.addChild(this.item); this.item.on(Laya.Event.CLICK, this, () => { this.item.destroy(); }); 2017-08-26 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20170826
...于逻辑贞更新间隔机制、时间和其他一些Timer相关的问题 graphics alpha 问题 问题状态 最新活动: 2017-09-21 16:56 浏览: 867 关注: 2 人
来源: Laya_社区 发布时间: 20170921
...chImg) //点击事件 Laya.stage.addChild(img); function switchImg() { img.graphics.clear(); //清除绘制 var imgUrl = (this.flag = !this.flag) ? this.img1 : this.img2; img.loadImage(imgUrl, 100, 100) } }这是官方的切换位图的示例,但是点击位图距离容器top和left100的区域,...
来源: Laya_社区 发布时间: 20180502
...stage.addChild(panel); var sp:Sprite=new Sprite();//panel的子容器sp sp.graphics.drawRect(0,0,500,1000,"#FF0000"); sp.size(500,1000); panel.addChild(sp); var btnAdd:Button=new Button();//点击按钮,动态添加sp的子对象,并改变子对象sp的宽高 btnAdd.skin='button-4.png'; Laya.sta...
来源: Laya_社区 发布时间: 20170601