大约有 1,493 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0310 秒)
Laya_社区(918) Laya2.0_文档(193) Laya_示例(125) Laya2.0_示例(101) Laya3.0_api(79) Laya3.0_文档(73) laya_api(2) Laya2.0_api(2)
...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
...一个平面。如图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
... 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
...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
...der.getRes("gate/Conventional/Test.ls") let scene = Laya.stage.addChild(test); Laya.stage.setChildIndex(scene, 0); //获取相机 var camera = scene.getChildByName("Main Camera"); console.log("test====================:" + Laya.version) ...
来源: Laya_社区 发布时间: 20190925
...Sprite3D, renderableMap: Map>) { // 将节点添加到场景中 this.scene.addChild(sprite); } ``` 4. 自定义部分 1. 添加动画示例 - 厘米秀人物模型共用一套骨骼, 在 unity 中使用对应骨骼模型导出 *.lani 动画数据文件, 加载到人物上 - 可自行添加,组...
来源: Laya2.0_文档 发布时间: 20210715