• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 3,091 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0079 秒)

2941. 多摄像机窗口的使用(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 46%]

...口分离,代码如下: ```typescript //创建场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //创建相机1 var camera1 = scene.addChild(new Laya.Camera(0, 0.1, 100)); //设置相机1清除颜色 camera1.clearColor = new Laya.Vector4(0.3, 0.3, 0.3, 1.0); camera1.transform.translate...

来源: Laya2.0_文档 发布时间: 20210715

2942. TypeError: Cannot read property '_addRenderObject' of undefined [ 46%]

...t (file:///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/test3Dscen...

来源: Laya_社区 发布时间: 20191129

2943. 寻路系统(JavaScript-3D基础(JS)-LayaAir3D之高级应用) [ 46%]

...对应的3D世界的路径数据 ```typescript //监听鼠标抬起 Laya.stage.on(Laya.Event.MOUSE_UP, this, function() { this.index = 0; //获取每次生成路径 this.getGridIndex(this.path[this.curPathIndex % this.pointCount].x, this.path[this.curPathIndex++ % this.pointCount].z, this.startPoint...

来源: Laya2.0_文档 发布时间: 20210714

2944. TimeLine.addLabel(label:String, offset:Number):TimeLine 亲测! 方法中第二个参数offset无效 [ 46%]

...prite = 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(...

来源: Laya_社区 发布时间: 20170410

2945. 重发问题: 点击页面会导致setTimeout setInterval 延迟执行 [ 46%]

...添加下面的方法, 一样会导致setInterval明显延迟执行; Laya.stage.on('click', null, function (e) { console.log.log(`click`); }); 即使我将所有的事件绑定全部注释掉频繁的点击页面也会卡住!!!!! 我在事件的处理函数中设置stopPropagation没有任何作用;...

来源: Laya_社区 发布时间: 20170323

2946. playByFrame动画监听问题,真不会了。就一个小问题。监听不到动画结束。。。 [ 46%]

...我Event.COMPLETE写错了?应该怎么用求教啊。。。。。 Laya.stage.on(Laya.Event.CLICK, this, function () {                 for (var i = 0; i < _outHitAllInfo.length; i++) {                     var name=_outHitAllInfo<em>.sprite3D.name;                ...

来源: Laya_社区 发布时间: 20170927

2947. 模型的功能介绍(ActionScript-3D基础(AS3)-LayaAir3D之模型和网格) [ 46%]

...模型名称。 ```typescript //初始化3D场景 var scene:Scene3D = Laya.stage.addChild(Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")) as Scene3D; //获取球型精灵 var sphere:MeshSprite3D = scene.getChildByName("Sphere") as MeshSprite3D; //获取精灵的mesh v...

来源: Laya2.0_文档 发布时间: 20210714

2948. TiledMap销毁的问题,TiledMap销毁后屏幕变灰,不能显示 [ 46%]

...n",viewRect);我的游戏销毁的代码 _map.destroy(); _map = null; Laya.stage.addChild(new Plazz());//ui 经过排查后发现问题出现在TiledMap相关的代码里面 在TiledMap的destroy方法内 /** * 销毁地图 */ public function destroy():void { ....... //这里是销毁地图层的代...

来源: Laya_社区 发布时间: 20180503

2949. 如何实现聊天图文混排的聊天 气泡背景效果? [ 46%]

...164​ var iHtml:HTMLIframeElement=new HTMLIframeElement();     Laya.stage.addChild(iHtml);     iHtml.href="res/html/test.html"; 或者也可以将htmlDivElement与气泡的图片在同一个父容器下,每条信息就是创建一个srprite容器!其他方式也可以实现!   2017...

来源: Laya_社区 发布时间: 20170710

2950. 提示资源重复加载 [ 46%]

...nimation.createFrames([swimpoorpath01,swimpoorpath02],"swimpoolani"); Laya.stage.addChild(this.swimpoolani); this.swimpoolani.play(0,true,"swimpoolani"); this.swimpoolani.interval = 500;         }     onEnable(): void { }  onDisable(): void { } }       esources already exist,is repeate...

来源: Laya_社区 发布时间: 20190805