大约有 271 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0049 秒)
...理加载时,drawTexture方法报错 if (!tex.loaded){ tex.once(/*laya.events.Event.LOADED*/"loaded",this,this._textureLoaded,[tex,args]); }drawTexture方法最下方有上面这一段代码,作用大概是第一加载失败时,再重新加载一遍。本来是挺好的,但是tex.once却会...
来源: Laya_社区 发布时间: 20180724
...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
...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
...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
...、一个面板中含有几个按钮,分别为按钮添加 this.myBtn.on(Event.CLICK) 事件,点击某按钮后有时还会发送事件 this.event(...),在关闭面板时设置 this.removeSelf() ,下次生成同类型的对象面板可正常打开;若在关闭时设成 this.destroy() 或 t...
来源: Laya_社区 发布时间: 20170914
... 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
...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
...\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
...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
...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