大约有 969 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0050 秒)
Laya_社区(501) Laya2.0_示例(94) Laya_示例(89) Laya2.0_文档(88) Laya3.0_api(63) Laya2.0_api(58) laya_api(54) Laya3.0_文档(22)
....pos(0, 0); reference.size('100%', '100%'); this.addChild(reference); Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [videoElement,reference,0, 0,'100%','100%']); Laya.Utils.fitDOMElementInArea(videoElement,reference,0, 0,'100%','100%') } } 2018-11-24 添加评论 免费帖 -...
来源: Laya_社区 发布时间: 20181124
...碰撞体报错,Cannot read property 'btSphereShape' of undefined Laya.stage报null 做了一个最简单的显示微信子域的程序,但是报错Cannot read property 'USER_DATA_PATH' of undefined 问题状态 最新活动: 2022-01-06 19:59 浏览: 2797 关注: 2 人 173*****785 • 2022-01-08...
来源: Laya_社区 发布时间: 20220106
...部分的颜色问题 官网示例摇一摇报错,就解决方案 修改stage的scale后,会发生异常情况 3D模型无法修改scale? 如何修改物理引擎中的图层 3D平行光产生的投影,如何修改颜色深浅? 问题状态 最新活动: 2017-11-30 22:00 浏览: 1548 关注:...
来源: Laya_社区 发布时间: 20170222
...g() { SelectColorDialog.super(this); this.name = 'SelectColorDialog'; Laya.stage.addChild(this); this.x = 1013; } Laya.class(selectColorDialog, "SelectColorDialog", testUI); return selectColorDialog; }());然后我使用下面的代码来弹出对话框 var dialog = new SelectColorDialog(); dialog.s...
来源: Laya_社区 发布时间: 20180325
...rawTexture(rankTexture, 0, 0, rankTexture.width, rankTexture.height); Laya.stage.addChild(rankSprite2); }); 希望官方可以给个微信小游戏排行榜2.0的demo 附件 : --> 2019-01-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20190115
...switchImg(); img.on(Laya.Event.CLICK, this, switchImg) //点击事件 Laya.stage.addChild(img); function switchImg() { img.graphics.clear(); //清除绘制 var imgUrl = (this.flag = !this.flag) ? this.img1 : this.img2; img.loadImage(imgUrl, 100, 100) } }这是官方的切换位图的示例,但是...
来源: Laya_社区 发布时间: 20180502
....btn.y = 25 ; this.btn.scaleX = 25 / 75 ; this.btn.scaleY = 25 / 75 ; Laya.stage.addChild(this.btn) ; this.btn.size(25,25) ; this.btn.on(Laya.Event.CLICK, this, music.music_voice_toggle); 代码是这样的 , 图片上传不了,代码直接贴上来 2017-08-03 0 0 分享 微博 QZONE 微信 cuix...
来源: Laya_社区 发布时间: 20170803
...otY = ani_planet.pivotX = 350; ani_planet.x = Laya.stage.width/2; ani_planet.load("1.swf",true); ani_planet.y = i*50; addChild(ani_planet); i++; } 是不是...
来源: Laya_社区 发布时间: 20180529
...nts.Event; public class Main extends Sprite { public function Main() { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(event:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); IFlash.setSize(960, 640); //2D项目中设置场景尺寸 I...
来源: Laya_社区 发布时间: 20151218
...用方式: this.__bind=new BindSkeleton(); Laya.stage.addChild(this.__bind); this.__bind.x=Laya.stage.width*0.5; this.__bind.y=Laya.stage.height*0.5; this.__bind.load(GamePath.single.getSpinePath("tank_blue.sk"),Laya.Handler....
来源: Laya_社区 发布时间: 20190805