大约有 238 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0047 秒)
...eApe(); showDragRegion(); } function createApe() { ape = new Sprite(); ape.loadImage(ApePath); Laya.stage.addChild(ape); var texture = Laya.loader.getRes(ApePath); ape.pivot(texture.width / 2, texture.height / 2); ape.x = Laya.stage.width / 2; ape.y = Laya.stage.height / 2; ape.on(Event.MOUSE_DOWN, ...
来源: Laya_示例 发布时间: 20261113
...prite = Laya.Sprite, Event = Laya.Event; this.ape = new Sprite(); this.ape.loadImage(ApePath); Laya.stage.addChild(this.ape); let texture = Laya.loader.getRes(ApePath); this.ape.pivot(texture.width / 2, texture.height / 2); this.ape.x = Laya.stage.width / 2; this.ape.y = Laya.stage.height / 2; this....
来源: Laya2.0_示例 发布时间: 20261113
...人 忽啊忽啊 • 2018-11-21 13:59 this.sp = new Laya.Sprite(); this.sp.loadImage("Attack_0_0002.png", Laya.Handler.create(this, (data)=>{ this.sp.graphics.drawTexture(this.sp.texture); var bounds = this.sp.getGraphicBounds(true); })); 这样绘制后,最后拿到的宽高就是图...
来源: Laya_社区 发布时间: 20181117
...te Bear End } function createSprite(no){ var flower = new Sprite(); flower.loadImage(texture1); flower.pos((0 + no) * 99.5, 73); flower.mouseEnabled=true; flower.alpha=1; flower.on(Event.CLICK,this,function() { flower.scaleX=1.1; flower.scaleY=1.1; Laya.timer.once(100, this,function() { flower.scale...
来源: Laya_社区 发布时间: 20170110
...文本下划线绘制bug 1.7.20beta有bug,帧属性面板打不开 image loadimage 加载网络图片BUG EffectAnimation Bug 微信6.7.2版本3D显示BUG 微信小游戏兼容性bug 部分机型load场景不显示 html控件bug汇总(版本layaAir 2.4) 问题状态 最新活动: 2019-10-18 13:...
来源: Laya_社区 发布时间: 20191017
...teApe)); } private createApe(): void { var ape: Sprite = new Sprite(); ape.loadImage(this.apePath); ape.x = (Laya.stage.width - ape.width) / 2; ape.y = (Laya.stage.height - ape.height) / 2; Laya.stage.addChild(ape); this.applayFilter(ape); } private applayFilter(ape: Sprite): void { var blurFilter: ...
来源: Laya2.0_示例 发布时间: 20261113
...phics.drawRect(0, 0, 100, 100, "#FF0000", "#0000FF", 1); //this.tMapPlayer.loadImage("unit/test.png"); this.tMapPlayer.zOrder = 1000; testLayer.addChild(this.tMapPlayer); }楼上您好,我照着你的代码写的,但是还是看不到我自己的sprite,请问是怎么回事呢? 我可以确...
来源: Laya_社区 发布时间: 20170627
...感觉Scene太重了,只需要Laya.Sprite有什么办法? Laya.Sprite loadImage 参数问题 laya.sprite 不接受click事件 问题状态 最新活动: 2018-01-16 11:04 浏览: 1340 关注: 2 人 Monica • 2018-01-16 11:20 是的
来源: Laya_社区 发布时间: 20180116
...this.img = new Image(); _this.img.loadImage(fileReader.result, 0, 0, 172, 172); _this.btn_Zp.addChild(_this.img); } }; ...
来源: Laya_社区 发布时间: 20170706
...画无法正常作用问题-解决办法 射线惊天大bug之Cannon image loadimage 加载网络图片BUG 2.3.0bata1 出现BUG. Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug laya2.0ide 显示bug 问题状态 最新活动: 2017-06-12 12:...
来源: Laya_社区 发布时间: 20170610