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

大约有 1,613 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0053 秒)

451. 高级应用-寻路导航 [ 69%]

...p.png", clas: Laya.Texture2D, priority: 1, params: [true] } ]; Laya.loader.create(resource, Laya.Handler.create(this, onLoadFinish)); function onLoadFinish() { //初始化3D场景 this.scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/TerrainScene/XunLongShi.ls")); //删除原...

来源: Laya_示例 发布时间: 20251209

452. 在 tiledmap 插入一个精灵在上面 [ 69%]

...00, Laya.WebGL);   Laya.loader.load("res/atlas/images.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLAS); }   onLoaded(){   console.info("onLoaded");   this.tiledMap = new Laya.TiledMap();   this.tiledMap.createMap("desert.json", new Laya.Rectangle(0, 0, Laya.stage.width, La...

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

453. 添加组件PhysicsCollider 时报 Cannot read property 'btCollisionObject' of undefined [ 69%]

...加载完运行过回调函数以后再进行。如下句 : Laya.loader.create( MyResouces.arrResources, Handler.create(this,onLoadComplete) ); 意为加载完MyResouces.arrResources这些资源后调用方法onLoadComplete,添加碰撞盒子需要在onLoadComplete里或者onLoadComplete运行...

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

454. 3D资源加载,进度显示问题 [ 69%]

3D资源加载,进度显示问题 使用Laya.loader.create场景资源的时候(比如加载loveScence.ls),onProgress函数回掉监听不到,然后界面上的加载进度会一直停留在一个百分百进度,等场景里面的素材全部加载完,onProgress才会收到进度消...

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

455. 加载.ls场景文件,销毁场景,再加载同一场景,想恢复初始状态,结果报错【附Demo】 [ 69%]

...andler.__proto.runWith (laya.core.js:1400)     at LoaderManager.__proto._createOne (laya.core.js:14594)     at LoaderManager.__proto._create (laya.core.js:14560)     at LoaderManager.__proto.create (laya.core.js:14514) 附件 : --> test_bug.zip 2019-01-24 1 条评论 免费帖 --> 分享 微...

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

456. 游戏系怎么把一些共用的功能独立出来 [ 68%]

...Loader.ATLAS },         ];         Laya.loader.load(atlas, Handler.create(this, this.onLoaded), Handler.create(this, this.onLoading, null, false)); 3、注入JSvar js:any = Laya.loader.getRes("res/atlas/choujiang.js"); Browser.window.eval(js); 4、运行JS var ChouJiang = Browser.window.eval...

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

457. 3d特效克隆时,在手机会现卡顿情况,特效资源已经提前在加载 [ 68%]

...  }                                  Laya.loader.create(_path, Handler.create(this,OnComplete,null),null,null,null,1,true,groupName);                                  }else{                                  var item:Sprite3D = ...

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

458. TileMap有明显的bug [ 68%]

...前面。   该bug尝试了2.0,依旧存在。   该bug尝试了cocoscreator引擎,cocoscreator不会发生这个bug。   附上测试的代码(javascript):var WebGL = laya.webgl.WebGL; Laya.init(1920, 1080, WebGL); function _OnMapCreate() { console.log("map create ..."); } var viewRect...

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

459. 多个button如何区分 [ 68%]

...var btn:Button=new Button(); ....... btn.clickHandler = laya.utils.Handler.create(this,this.onClickButton,[i],false); } this.onClickButton = function(id){ 通过ID 判断点击哪一个按钮! } 189*****192 • 2017-04-26 09:38 @cyqcyqcyq:我明白你的意思 this.emojiBut1.on(Laya.Event.CLICK,th...

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

460. 导出的3D资源加载报错 [ 68%]

.../开启统计信息 Stat.show(); //预加载角色动画资源 Laya.loader.create("res/LayaScene_layaScene/layaScene.lh",Handler.create(this,onModelOK),null,Sprite3D); } private function onModelOK():void { //添加3D场景 var scene:Scene = new Scene(); Laya.stage.addChild(scene); //创建摄像机(...

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