大约有 698 项符合查询结果, 库内数据总量为 30,937 项。 (搜索耗时: 0.0043 秒)
Laya_社区(286) Laya3.0_api(156) laya_api(106) Laya2.0_api(98) Laya2.0_文档(24) Laya_示例(16) Laya3.0_文档(8) Laya2.0_示例(4)
...的话,也是CPU很高,操作窗口卡顿厉害 原因是一个run once = true的Handler,如果再次run就会导致死循环, 代码如下,项目文件我也打包上传了,求原因, 类B的onloaded方法会无限循环执行 testlaya.aspackage { import laya.display.Stage; import...
来源: Laya_社区 发布时间: 20170330
...事件。 EventDispatcher off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中删除指定事件类型的所有侦听器。 Ev...
来源: Laya2.0_api 发布时间: 20190513
...); } } window["test"] = new NewTest(); window["test"].Load(); Laya.timer.once(10*1000, null, window["test"].UnLoad);如题所示,我用demo测试,加载一个json文件,然后延迟10秒钟调用释放资源,在Laya.Loader["loadedMap"]查看,确实已经去掉了。 但是内存并没有...
来源: Laya_社区 发布时间: 20181018
... _extra _forward _scene _up _url clearFlag enableRender name tag useOcclusionCulling RENDERINGTYPE_DEFERREDLIGHTING RENDERINGTYPE_FORWARDRENDERING WORLDINVERTFRONT _contextScissorPortCatch Accessors active activeInHierarchy aspectRatio boundFrustum canblitDepth clearColor components cullingMask dept...
来源: Laya3.0_api 发布时间: 20231115
... 100 }); var url: string = this.URL; this.qrcode.makeCode(url); Laya.stage.once("click", this, this.clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); } private clickHandler(): void { var url: string = this.qrcode._oDrawing._elImage.src;//获取,注意这里是...
来源: Laya_社区 发布时间: 20180412
...以试下, 先设置物体的active为false,再使用Laya.timer.once调用destroy方法,因为有些组件还在onupdate中,不可以立刻删除 图集的话,可以试下 使用loader.clearRes()来清除缓存。 2019-04-28 0 0 分享 微博 QZONE 微信 为什么被...
来源: Laya_社区 发布时间: 20190415
...AnimationsProperties | Methods | Events Packagelaya.d3.component.animationClasspublic class SkinAnimationsInheritanceSkinAnimations KeyframeAnimations Component3D EventDispatcher Object SkinAnimations 类用于创建蒙皮动画组件。 Public Properties Hide Inherited Public Properties Show Inh...
来源: laya_api 发布时间: 20170929
...0FF"); window.onblur = function() { console.log("onblur....?"); Laya.timer.once(2000, null, function() { Laya.Resource.destroyUnusedResources(); }); } 当触发了释放资源的函数,会报错如下: laya.webgl.js:5713 Uncaught TypeError: Cannot read property '_targets' of null at WebGLContext...
来源: Laya_社区 发布时间: 20181016
...事件。 EventDispatcher off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中删除指定事件类型的所有侦听器。 Ev...
来源: laya_api 发布时间: 20170603
...事件。 EventDispatcher off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中删除指定事件类型的所有侦听器。 Ev...
来源: laya_api 发布时间: 20170929