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

大约有 270 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0044 秒)

101. 纹理加载时,drawTexture方法报错 [ 69%]

...理加载时,drawTexture方法报错 if (!tex.loaded){ tex.once(/*laya.events.Event.LOADED*/"loaded",this,this._textureLoaded,[tex,args]); }drawTexture方法最下方有上面这一段代码,作用大概是第一加载失败时,再重新加载一遍。本来是挺好的,但是tex.once却会...

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

102. LAYA AIR ide1.7.1beta 网页跟手机调试不能用 [ 69%]

...g-core\node_modules\vscode-debugadapter\lib\protocol.js:24:60) at emitOne (events.js:96:13) at Socket.emit (events.js:188:7) at readableAddChunk (_stream_readable.js:176:18) Error processing "evaluate": TypeError: Cannot read property 'api' of undefined at ChromeConnection.get api [as api] (f:\LayaA...

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

103. Cannot read property 'rayCast' of undefined [ 69%]

...sky.lh", Laya.Handler.create(this, this.onLoadFinish)); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); } onLoadFinish(layaMonkey){ this.layaMonkey=this.scene.addChild(layaMonkey); // Laya.timer.frameLoop(1, this, this.onFrameLoop); } onFrameLoop(){ this.layaMonkey.transform.rotate(this....

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

104. Unhandled promise rejection: Error: Cannot navigate to invalid URL [ 69%]

...node_modules/noice-json-rpc/lib/noice-json-rpc.js:42:48)     at emitOne (events.js:101:20)     at LoggingSocket.emit (events.js:191:7)     at Receiver.receiverOnMessage (/Applications/LayaAirIDE.app/Contents/Resources/app/extensions/laya-debug2/node_modules/ws/lib/websocket.js:719:20)     at...

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

105. 引擎socket类_onMessage bug [ 69%]

...       if (this.disableInput && data) {             this.event(Event.MESSAGE, data);             return;         }         if (this._input.length > 0 && this._input.bytesAvailable < 1) {             this._input.clear();             this._addIn...

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

106. 两个小问题 [ 69%]

...、一个面板中含有几个按钮,分别为按钮添加 this.myBtn.on(Event.CLICK) 事件,点击某按钮后有时还会发送事件 this.event(...),在关闭面板时设置 this.removeSelf() ,下次生成同类型的对象面板可正常打开;若在关闭时设成 this.destroy() 或 t...

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

107. discard property,please use transform's property instead [ 68%]

...kinnedMeshRender.castShadow = true;             layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () {                 var aniSprite3d = layaMonkey.getChildAt(0);                 var animator = aniSprite3d.getComponentByType(Laya.Animator);                 ani...

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

108. 错误提示很好,但是还是不知道我代码哪里出了问题 [ 68%]

...\node_modules\vscode-debugadapter\lib\protocol.js:24:60)     at emitOne (events.js:96:13)     at Socket.emit (events.js:188:7)     at rea[...] Error processing "evaluate": TypeError: Cannot read property 'api' of undefined     at ChromeConnection.get api [as api] (d:\LayaBox\LayaAirIDE_1_7_6...

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

109. Image.loadImage 方法加载问题 [ 68%]

...button/button_window_public_space_enter.png";    this.btnEnter.on( Laya.Event.CLICK, this, this.btnClick );    this.width = 1553;    this.height = 270;   }   public set publicSpaceData ( publicSpaceInfoData:any )   {    this._publicSpaceData = publicSpaceInfoData;    console.log...

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

110. 资源加载问题 [ 68%]

...re.js:13173)     at LayaGame.<anonymous> (LayaGame.ts:60)     at EventHandler.__proto.runWith (laya.core.js:724)     at ResInfo.__proto.event (laya.core.js:494)     at LoaderManager.__proto._endLoad (laya.core.js:13377)     at Loader.onLoaded (laya.core.js:13353)     at EventHandle...

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