大约有 1,562 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0058 秒)
...ld"; //设置文本颜色 txt.color = "#ffffff"; Laya.stage.addChild(txt); yaorao • 2018-03-30 11:39 @qian:看了下 lib目录的文件有6M左右。会是因为加载这个目录导致的嘛? qian • 2018-03-30 11:54 不确定 但是你可以把不需要的手动删除一下
来源: Laya_社区 发布时间: 20180330
...gt;'; var xmldom = Laya.Utils.parseXMLFromString(xml).firstChild; root_dom.addChild(xmldom); ``` 我这样写 root_dom下面有节点但是完全没法显示啊 zsytssk • 2016-12-01 14:10 我如何把xml变成laya中能用的节点啊, 有demo吗 cuixueying • 2016-12-03 19:04 你把这个写成...
来源: Laya_社区 发布时间: 20161201
...模型名称。 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //获取球型精灵 var sphere = scene.getChildByName("Sphere"); //获取精灵的mesh var sphereMesh = sphere.meshFilter.sharedMes...
来源: Laya2.0_文档 发布时间: 20210714
...模型名称。 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //获取球型精灵 var sphere = scene.getChildByName("Sphere"); //获取精灵的mesh var sphereMesh = sphere.meshFilter.sharedMes...
来源: Laya2.0_文档 发布时间: 20210715
...nish(): void { //初始化3D场景 this.scene = (<Scene3D>Laya.stage.addChild(Loader.createNodes("res/threeDimen/scene/TerrainScene/XunLongShi.ls"))); //根据场景中方块生成路径点 this.initPath(this.scene); //获取可行走区域模型 var meshSprite3D: MeshSprite3D = (<MeshSprit...
来源: Laya3.0_文档 发布时间: 20230303
...(); this.chat_lab.pos(2, 2); this.chat_lab.size(495,329); this.rect_sprite.addChild(this.chat_lab); .... //输入了一大堆聊天记录后,内容超过了329px,虽然限高height:329px;并加入了overflow-y:scroll;,但没有出现滚动条而且还漏了。 var str = "<div style='positio...
来源: Laya_社区 发布时间: 20210121
...wRect);我的游戏销毁的代码 _map.destroy(); _map = null; Laya.stage.addChild(new Plazz());//ui 经过排查后发现问题出现在TiledMap相关的代码里面 在TiledMap的destroy方法内 /** * 销毁地图 */ public function destroy():void { ....... //这里是销毁地图层的代码 va...
来源: Laya_社区 发布时间: 20180503
...= new Laya.Sprite(); sp.graphics.drawRect(0,0,50,50,"#ff8822"); Laya.stage.addChild(sp); var delay:number = 5000; var timeLine:Laya.TimeLine = new Laya.TimeLine(); timeLine.addLabel("0",delay).to(sp,{x:550},500,null,0); timeLine.addLabel("1",delay).to(sp,{y:350},500,null,0); timeLine.addLabel("2",de...
来源: Laya_社区 发布时间: 20170410
...e:///E:/A_LayaDemo/test3Dscene/bin/libs/laya.core.js:12142:26) at Stage.addChild (file:///E:/A_LayaDemo/test3Dscene/bin/libs/laya.core.js:11998:22) at GameUI.onLoadSceneOver (file:///E:/A_LayaDemo/test3Dscene/bin/js/bundle.js:28:24) at Handler.runWith (file:///E:/A_LayaDemo/test3Dscene/bin/...
来源: Laya_社区 发布时间: 20191129
...to-generated method stub var bitmap:Bitmap=event.target.content as Bitmap; addChild(bitmap); l.contentLoaderInfo.removeEventListener(Event.COMPLETE,onImage2Loaded); l=null; } } }as下输出true js下输出false 2015-12-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果...
来源: Laya_社区 发布时间: 20151228