大约有 1,495 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0075 秒)
Laya_社区(920) Laya2.0_文档(193) Laya_示例(125) Laya2.0_示例(101) Laya3.0_api(79) Laya3.0_文档(73) laya_api(2) Laya2.0_api(2)
... new Laya.Sprite(); a.graphics.drawCircle(0, 0, 50, "#ff0000"); Laya.stage.addChild(a); a.size(100, 100); a.pos(200, 200); a.mouseEnabled = true; a.mouseThrough = true; a.on(Laya.Event.MOUSE_DOWN, null, function (e: Laya.Event): void { console.log("touch a"); } 因为需要将mouseThrough=true...
来源: Laya_社区 发布时间: 20161109
射线一直无法获取物体 添加物体: var qb_pet = scene.addChild(Laya.Sprite3D.load("./test.lh")); qb_pet.once(Laya.Event.HIERARCHY_LOADED, this, function(){ qb_pet.addComponent(Laya.SphereCollider); }); 设置射线: Laya.timer.frameLoop(1, null,...
来源: Laya_社区 发布时间: 20170915
...er = new Handler(this, onSelect, [comboBox]); //加载到舞台 Laya.stage.addChild(comboBox); //自动计算宽高 comboBox.autoSize = true; //设置位置 comboBox.pos((Laya.stage.width - comboBox.width) / 2, 150); //自动计算宽高关闭(在设置位置时,需获取列表宽度,获取后...
来源: Laya2.0_文档 发布时间: 20210714
... 01-29 14:08:22.509 12064-12079/? E/LayaBox: JCSceneCmdDispath::_rendercmd_addChild error can't find the node3d id=-1 01-29 14:08:22.509 12064-12079/? E/LayaBox: JCSceneCmdDispath::_rendercmd_addChild error can't find the node3d id=-1 01-29 14:08:22.599 12064-12104/? I/LayaBox: alert=http://stand.al...
来源: Laya_社区 发布时间: 20180129
...一个平面。如图1所示。 ```typescript //平面 var plane = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(10, 10, 10, 10))); //新建材质 var planeMat = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, fun...
来源: Laya2.0_文档 发布时间: 20210714
...wRect);我的游戏销毁的代码 _map.destroy(); _map = null; Laya.stage.addChild(new Plazz());//ui 经过排查后发现问题出现在TiledMap相关的代码里面 在TiledMap的destroy方法内 /** * 销毁地图 */ public function destroy():void { ....... //这里是销毁地图层的代码 va...
来源: Laya_社区 发布时间: 20180503
... sp.pos(-300, -300) Laya.stage.addChild(sp);//把精灵显示到舞台 // <p>也可以获取原始图片数据,分享到网上,从而实现截图效果,示例:</p> ...
来源: Laya_社区 发布时间: 20190816
...oaded)) })() function onLoaded() { var cMask = new maskDemoUI() Laya.stage.addChild(cMask) } })() 附件 : --> 2018-08-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 能多提供一...
来源: Laya_社区 发布时间: 20180810
...t.length) * z, 0, bg.width / letterList.length, bg.height / 2); Laya.stage.addChild(letter); letter.on("click", this, (function(para){ console.log("z:"+z+";para:"+para+";letterList[para]:"+letterList[para]); return function () { alert("z:"+z+";para:" + para + "I'm letter " + letterList[para]); }; })...
来源: Laya_社区 发布时间: 20180810
...ar ul:String in pics){ var mc:MovieClip = new MovieClip; mc.load(ul); this.addChild(mc); mc.on(Event.COMPLETE,this,stopNowMC) } } private function stopNowMC(e:Event):void{ trace(e.currentTarget); trace(e.target); MovieClip(e.currentTarget).gotoAndStop(MovieClip(e.target).count-1); } AS3代码是这...
来源: Laya_社区 发布时间: 20161221