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

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

481. 从网络上下载的BMP图片二进制数据后,如何赋值给 laya.ui.Image [ 80%]

...         var req = new laya.net.HttpRequest();         req.on(laya.events.Event.COMPLETE, this, cb_onSuccess);         req.on(laya.events.Event.ERROR, this, cb_onFail);         req.send(url);      }      // 下载jpg图片成功后,显示在舞台上,response为 bmp图片...

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

482. laya.d3.resource.RenderTextureCube_API3.0 [ 80%]

... _removeReference _setCPUMemory _setCreateURL _setGPUMemory _start destroy event getData gpuCompressFormat hasListener isCreateFromURL off offAll offAllCaller on once recreate clearPool createFromPool destroyUnusedResources recoverToPool Constructors constructor new RenderTextureCube(size: number, c...

来源: Laya3.0_api 发布时间: 20231102

483. laya.resource.NativeRenderTexture2D_API3.0 [ 80%]

...ference _setCPUMemory _setCreateURL _setGPUMemory _start clear destroy end event getData getIsReady gpuCompressFormat hasListener isCreateFromURL off offAll offAllCaller on once recycle restore start destroyUnusedResources popRT pushRT Constructors constructor new NativeRenderTexture2D(width: number...

来源: Laya3.0_api 发布时间: 20231115

484. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 80%]

...= this._objectInfo.templateInfo.height; this.addChild(this._body); this.on(Event.MOUSE_OVER, this, this.__onMouseOverHole); this.on(Event.MOUSE_OUT, this, this.__onMouseOutHole); } this.pos(this._objectInfo.templateInfo.x, this._objectInfo.templateInfo.y); } private __onMouseOverHole(event:Event):vo...

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

485. laya.ui.TextInput [ 80%]

...l Classes | Index | Frames No Frames TextInputProperties | Methods | Events Packagelaya.uiClasspublic class TextInputInheritanceTextInput Label UIComponent Sprite Node EventDispatcher ObjectSubclasses TextArea TextInput 类用于创建显示对象以显示和输入文本。 Public Properties ...

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

486. MovieClip 报错 7 [ 80%]

...代码来添加保护:var data:*; data=Loader.getRes(_url); if (!data) { event(Event.ERROR,"file not find"); return; } //保护修改-----start------------------ var atlasData:Object = Loader.getAtlas(_atlasPath); if(!atlasData) { event(Event.ERROR,"file not find"); return; } //保护修改-----en...

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

487. 一个LayaAir moveout target 设计上的疑问? [ 80%]

...   sp[j + i * 10].pos(i * 60, j * 60);         sp[j + i * 10].on(Laya.Event.MOUSE_OVER, this, over);         sp[j + i * 10].on(Laya.Event.MOUSE_OUT, this, out);     } } function over(e) {     e.target.graphics.drawRect(0, 0, 50, 50, "red"); } function out(e) {     //正常大家可能...

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

488. laya.resource.RenderTextureCube_API3.0 [ 80%]

... _removeReference _setCPUMemory _setCreateURL _setGPUMemory _start destroy event getData gpuCompressFormat hasListener isCreateFromURL off offAll offAllCaller on once recreate clearPool configRenderContextInstance createFromPool destroyUnusedResources recoverToPool Constructors constructor new Rende...

来源: Laya3.0_api 发布时间: 20231115

489. laya.d3.webxr.core.WebXRRenderTexture_API3.0 [ 80%]

...rTarget _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event getData gpuCompressFormat hasListener isCreateFromURL off offAll offAllCaller on once recreate clearPool configRenderContextInstance createFromPool destroyUnusedResources recoverToPool Constructors constructor new WebXR...

来源: Laya3.0_api 发布时间: 20231115

490. 按钮点击问题 [ 80%]

... 一点一滴 赞同来自: 按钮的皮肤用一态的,给按钮注册event.mousedown事件,然后在监听event.mouseup事件,在按钮触发event.mouseup事件后通过skin切换皮肤即可。 2018-05-12 0 0 分享 微博 QZONE 微信 hepengwei 赞同来自: 那就是用两个图喽,那...

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