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

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

151. 加载unity导出的.lh文件报错! [ 72%]

...res/room.lh");//方法二:预加载,创建为Sprite3D类型Laya.loader.create("res/room.lh",Laya.Handler.create(this,this.onCreateComplete));//预加载完成后回调private onCreateComplete():void{//实例化加载并创建好的3D对象var sprite3D:Laya.Sprite3D = Laya.loader.getRes("res/room...

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

152. Uncaught 无法实例class PhysicsCollider extends PhysicsTriggerComponent [ 71%]

...ar bt = Physics3D._bullet;         var btColObj = bt.btCollisionObject_create();         bt.btCollisionObject_setUserIndex(btColObj, this.id);         bt.btCollisionObject_forceActivationState(btColObj, PhysicsComponent.ACTIVATIONSTATE_DISABLE_SIMULATION);         var flags = bt.btCo...

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

153. discard property,please use transform's property instead [ 71%]

...能         directionLight.shadowPCFType = 3;         Laya.loader.create([             "res/plane.lh",             "res/LayaMonkey.lh"         ], Laya.Handler.create(this, onComplete));         var _quaternion = new Laya.Quaternion();         Laya.timer.frameLoop(1, n...

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

154. Laya 绑定显示内容到骨骼动画 [ 71%]

...eBinds():void{ let source:BindSource; let position:Laya.Point=Laya.Point.create(); for(let index:number=0;index<this.__bindList.length;index++){ source=this.__bindList[index]; SkeletonUtils.getBoneLocalPoint(this,source.boneName,position); source.x=source.offestX+position.x; source.y=source.of...

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

155. 3D场景销毁后,仍有引用存在,内存中场景及引用其的对象无法销毁 [ 71%]

...      this.scene.addChild(this.camera);         Laya.loader.create("res/scene_Effect/Conventional/Effect_zhujue_attack.lh", Laya.Handler.create(this, () => {              let item = Laya.loader.getRes("res/scene_Effect/Conventional/Effect_zhujue_attack.lh");   ...

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

156. 3d导入粒子效果报错 [ 71%]

...source/Texture/MapGrid.psd) extension with: psd. at LoaderManager.__proto._create (file:///C:/Users/borui/Desktop/Cube3D/bin/libs/laya.core.js:13120:11) at LoaderManager.__proto.create (file:///C:/Users/borui/Desktop/Cube3D/bin/libs/laya.core.js:13088:10) at Loader.Laya3D._onMaterilLmatLoaded (file:...

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

157. laya加载unity插件导出的场景 physics3D is not a function [ 71%]

...Laya3D.init (laya.d3.js:14694) at new GameUI (GameUI.ts:34) at SceneLoader.create (laya.core.js:22061) at EventHandler.__proto.run (laya.core.js:1385) at SceneLoader.__proto.event (laya.core.js:1156) at SceneLoader.__proto._checkNext (laya.core.js:15949) at SceneLoader.__proto.onOneLoadComplete (lay...

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

158. 在 tiledmap 插入一个精灵在上面 [ 71%]

...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

159. 3d模型资源,加载后AddChild会报错,请教一下什么原因。 [ 71%]

...源,加载后AddChild会报错,请教一下什么原因。 Laya.loader.create("laya_assert/LayaScene_role/role.lh", Handler.create(_instance, OnCreateComplete1)); private static function OnCreateComplete1():void{ trace("complete load role"); var sprite3D:Sprite3D = Laya.loader.getRes("laya_asser...

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

160. Laya.SoundManager.playSound 无法播放出音效 [ 71%]

...load([{url:"sfx/hit01.mp3",type:Laya.Loader.SOUND}],Laya.Handler.create(this,this.onSfxLoad)); 但是提示[warn]Retry to load: sfx/hit01.mp3 [error]Failed to load: sfx/hit01.mp3 资源文件是存在的 w1114367261 • 2018-04-23 11:30 1,直接playSound的话laya会先查找你是否加...

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