大约有 2,310 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0051 秒)
Laya_社区(1513) Laya2.0_文档(259) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(80) Laya3.0_文档(75) Laya2.0_api(74) laya_api(70)
...鼠标坐标 img.on(Laya.Event.MOUSE_MOVE,this,this.onmousemove); apesCtn.addChild(img); ........ onmousemove(e) { //console.log("e="+JSON.stringify(e)); for (var property in e) { console.log(property+"="+e[property]); } console.log("========================"); /**这里是运行后,在img上拖...
来源: Laya_社区 发布时间: 20181031
...this.graphics.drawLine(0,45,0,-45,'#ff0000',1); this.alpha = 0; Laya.stage.addChild(this); // this.pos(440,640); } Laya.class(sightBeadSprite, "SightBead", Laya.Sprite); return sightBeadSprite; }());然后如此使用destroy for (var i = 0; i < Laya.stage.numChildren; i++) { var object = Laya.sta...
来源: Laya_社区 发布时间: 20171012
...1754, 0.7341046333312988); let scene: Laya.Scene = new Laya.Scene(); scene.addChild(camera); scene.addScript(SceneScript); Laya.stage.addChild(scene); } } new GameMain(); g02test.zip 2018-02-01 0 0 分享 微博 QZONE 微信 qian 赞同来自: 自己new的摄像机和射线检测误差没有关系 ...
来源: Laya_社区 发布时间: 20180201
...er = new Laya.Handler(this, this.onChangeColor, [colorPicker]); this.owner.addChild(colorPicker); this.onChangeColor(colorPicker); } private onChangeColor(colorPicker: Laya.ColorPicker, e: any = null): void { console.log(colorPicker.selectedColor); } } 运行效果如下动图所示: (动图2-1...
来源: Laya3.0_文档 发布时间: 20251010
...refab_' + name, obj.create,obj); Laya.stage.addChild(prefab); prefab.pos(100,100); }),null,Laya.Loader.PREFAB); 如上,obj.create打包后在真机找不到此函数。 附件 : --> 2D.zip 2020-04-09 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20200409
...te3D(Laya.Mesh.load("fish/denglongyu/denglongyuANI-denglongyu.lm")); scene.addChild(fish); var fishmaterial = new Laya.StandardMaterial(); //漫反射贴图 fishmaterial.diffuseTexture = Laya.Texture2D.load("fish/denglongyu/denglongyu1.jpg"); fish.meshRender.material = fishmaterial; fish.transform.l...
来源: Laya_社区 发布时间: 20170918
...eScoreNum.png", 123); fontLable.x = pt_src.x; fontLable.y = pt_src.y; this.addChild(fontLable); 2018-04-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 w1114367261 赞同来自: xiong /** * 字体切片...
来源: Laya_社区 发布时间: 20180414
...代码 var particleRoot = Laya.Sprite3D.load("Samples.lh") scene.addChild(particleRoot); C_jx • 2017-03-01 09:47 帮我看看上传上去的那个特效,是我显示的问题还是特效导出的问题,我在这里纠结了很久 183*****755 • 2017-03-01 11:25 你先确定下,有...
来源: Laya_社区 发布时间: 20170228
...t.x = this.width / 2; part.y = this.height - 100; Laya.stage.addChild(part); } dian.png和dian.part放到demo的comp目录下。 dian.zip 2017-08-03 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 可否把可以体现问题的能运行的例子上传下呢,我测试没有重...
来源: Laya_社区 发布时间: 20170803
...sp = Pool.getItemByClass(SPRITE_SIGN, Sprite) sprites.push(sp); Laya.stage.addChild(sp); } } initialize(); Laya.stage.on("click", this, function() { var sp; for(var i = 0, len = sprites.length; i < len; i++) { sp = sprites.pop(); ...
来源: Laya_社区 发布时间: 20160729