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

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

1011. 【简单跑酷--JS版】---Lv.6 终篇 [ 65%]

...is.addChild(this.player); //监听 按下 弹起 事件 Laya.stage.on(laya.events.Event.MOUSE_DOWN, this, this.onMouseDown); Laya.stage.on(laya.events.Event.MOUSE_UP, this, this.onMouseUp); //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } _proto.onLoop = function(){ ...

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

1012. 3d坐标 转2d坐标 报错 我的 版本 是mac 和版本有关系么 [ 65%]

...ers/yons/Documents/myLaya/demopos/bin/libs/laya.core.js:22073:12)     at EventHandler.__proto.run (/Users/yons/Documents/myLaya/demopos/bin/libs/laya.core.js:1393:27)     at SceneLoader.__proto.event (/Users/yons/Documents/myLaya/demopos/bin/libs/laya.core.js:1164:53)     at SceneLoader.__prot...

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

1013. laya.physics.js:430 Cannot read property 'GetType' of null [ 65%]

...,Cannot read property 'btSphereShape' of undefined Cannot read property 'events' of undefined Cannot read property '_getBit' of undefined 加载unity5.6.1导出来的场景提示Cannot read property 'charAt' of underfined 添加组件PhysicsCollider 时报 Cannot read property 'btCollisionObject' ...

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

1014. 导出的3D资源加载报错 [ 65%]

...s.Handler;          import laya.display.Stage;     import laya.events.Event;     import laya.utils.Stat;          public class LayaSample {                  private var _stateMachine:StateMachine;         public function LayaSample()         { ...

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

1015. 生成微信小游戏时各种"undefined"(已解决) [ 65%]

...的环境是TypeScript) * 各种"undefined",比如matter undefined, Common,Events undefined等等 * 其实主要原因在于  1. laya会根据index.html顺序把各种js写入code.js  2. matter.js在生成code.js后他定义的var Matter并不是全局的,因此导致后面需要调用Matter的地...

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

1016. 打包APK运行,drag拖动出现问题;color="#0"程序直接崩溃 [ 65%]

...           Laya.stage.addChild(imag);             imag.on(Event.MOUSE_DOWN,this,onDown);             imag.on(Event.MOUSE_UP,this,onUP);         }                  private function onDown():void{             imag.startDrag();         }    ...

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

1017. laya.ui.Widget [ 65%]

... _onEnable():void[override] Widget  _onParentResize():void 父容器的 Event.RESIZE 事件侦听处理函数。 WidgetPublic Constants ConstantDefined By  EMPTY : Widget[static] 一个已初始化的 Widget 实例。WidgetProperty Detailbottompropertybottom:Number表示距底边的距离(...

来源: Laya2.0_api 发布时间: 20190513

1018. iPhone6 ios 8.3系统 最新的QQ 锁屏再解锁 游戏闪退 [ 65%]

...te"; } //监听QQ内置浏览器切换至后台事件  window.document.addEventListener("qbrowserVisibilityChange", function(e):void{ trace("监听QQ缩小至后台事件:"+(!e.hidden ? "前置显示":"后台隐藏")); isStopLoop = e.hidden; if (e.hidden) { _isVisibility = false; if (_this._isInput...

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

1019. 打包app,http无法设置content-type [ 65%]

...gt;, cb:(err:Error, data?:any)=>void) { let req = new Request(); req.on(Event.COMPLETE, this, (data) => { cb(null, data); }); req.on(Event.ERROR, this, (err) => { console.error(err); cb(err); }); let body = data; let tp = typeof data if(tp === 'object' || tp === 'array'){ if(method === 'pos...

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

1020. js中使用sharedMesh报错 [ 65%]

...file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:12657:28) at EventHandler.__proto.runWith (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:709:27) at ResInfo.__proto.event (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:479:28) at LoaderManager.__proto._end...

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