大约有 698 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0041 秒)
Laya_社区(286) Laya3.0_api(156) laya_api(106) Laya2.0_api(98) Laya2.0_文档(24) Laya_示例(16) Laya3.0_文档(8) Laya2.0_示例(4)
...scene不起作用 var scene = Laya.stage.addChild(new Laya.Scene()); scene.once(Laya.Event.HIERARCHY_LOADED, null, function (sprite) { console.log("scene HIERARCHY_LOADED"); }); scene.once(Laya.Event.LOADED, null, function (sprite) { console.log("scene LOADED"); });HIERARCHY_LOADED 和 LOADED有什...
来源: Laya_社区 发布时间: 20170619
...ore:Boolean = true):void 定时重复执行(基于帧率)。 Timer frameOnce(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void 定时执行一次(基于帧率)。 Timer loop(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = t...
来源: Laya2.0_api 发布时间: 20190513
...ad("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { var aniSprite3d = layaMonkey.getChildAt(0); var animator = aniSprite3d.getComponentByType(Laya.Animator); animator.play(null, 1.0, 115, 150); }); var _quaternion = new Lay...
来源: Laya_示例 发布时间: 20250312
...染第二项以及索引异常是因为 list 的Hanlder.create没有设置once为flase。 2) 图片的问题解释起来有些复杂,简单来说 2.1) 因为有一个默认的skin,所以会加载渲染 2.2) 因为传过去的地址不存在,所以不会默认覆盖掉,这也是为什么你...
来源: Laya_社区 发布时间: 20210412
...reate的回收问题 Handler.create的最后一个参数,官方解释是 once:Boolean (default = true) — 是否只执行一次,如果为true,回调后执行recover()进行回收,默认为true。可下面代码为什么结果是false? module laya { import Stage = Laya.Stage; import Text = L...
来源: Laya_社区 发布时间: 20171221
...t gpuCompressFormat hasListener isCreateFromURL off offAll offAllCaller on once setDDSData setImageData setKTXData setPixelsData updateSubPixelsData destroyUnusedResources Constructors constructor new TextureCube(size: number, format: TextureFormat, mipmap?: boolean, sRGB?: boolean): TextureCube Ove...
来源: Laya3.0_api 发布时间: 20231102
... Laya.Sprite3D; //this.sceneP.transform.setTranslate(500,500); this.sceneP.once(Event.HIERARCHY_LOADED, this,function():void{ console.error("改变大小"); this.sceneP.transform.localScale = new Vector3(3, 3, 3); this.sceneP.transform.localPosition = new Vector3(100, 100, 100); }); 2018-03-27 添...
来源: Laya_社区 发布时间: 20180327
...t gpuCompressFormat hasListener isCreateFromURL off offAll offAllCaller on once setDDSData setImageData setKTXData setPixelsData updateSubPixelsData destroyUnusedResources Constructors constructor new TextureCube(size: number, format: TextureFormat, mipmap?: boolean, sRGB?: boolean, premultiplyAlpha...
来源: Laya3.0_api 发布时间: 20231115
...lse{ // 创建请求 let httpRequest = new Laya.HttpRequest(); httpRequest.once(Laya.Event.COMPLETE, this, (data)=>{ let byte = new Laya.Byte(data); byte.writeArrayBuffer(data, 4); let blob = new Laya.Browser.window.Blob([data], {type:'image/apng'}); let url = Laya.Browser.window.URL.createObject...
来源: Laya_社区 发布时间: 20190430
...36,640); var sp = new Laya.Sprite(); var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,completeHandler); xhr.once(Laya.Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); function completeHandler(data){ //加载完成返回的data是arraybuffer; //...
来源: Laya2.0_文档 发布时间: 20210715