大约有 2,741 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0055 秒)
Laya_社区(1926) Laya3.0_api(248) Laya2.0_api(162) laya_api(132) Laya_示例(81) Laya2.0_文档(81) Laya2.0_示例(65) Laya3.0_文档(46)
...Handler.create(this, onAssetLoaded), loaderHandler.create(this, onLoading, null, false)); // 侦听加载失败 Laya.loader.on(Event.ERROR, this, onError); this.moveover =true; function onAssetLoaded(texture) { console.log("加载结束"); ...
来源: Laya_社区 发布时间: 20171024
...rivate function OnShow():void { // TODO Auto Generated method stub if(pop==null){ pop = new TestDialogUI(); pop.btn_close.clickHandler = new Handler(this,function(){pop.parent.removeChild(pop);}); } this.addChild(pop); } private function StartMove(len:int):void { trace("[TestView.StartMove]") // TOD...
来源: Laya_社区 发布时间: 20171129
...ob对象,来获得HTMLImageElement对象 Laya.loader.fetch( "" ,"image", null, option).then((res)=>{ //创建Texture2D var t2d: Texture2D = new Texture2D(res.width, res.height, TextureFormat.R8G8B8A8, false, false, true); t2d.setImageData(res, true, false); //创建Texture var texture: Texture ...
来源: Laya3.0_文档 发布时间: 20230303
... { if (typeof (complete) === "function") { progress = complete; complete = null; } if (typeof (param) === "function") complete = param; if (progress instanceof Handler) { let h = progress; progress = (value: number) => h.runWith(value); } // @ts-ignore return Scene._load(url, progress).then(scene...
来源: Laya_社区 发布时间: 20250609
...用法示例:** **派发:** ``` 派发对象.event(type:String,data:*=null); ``` **监听:** ``` 派发对象.on(type,caller,listener,args); ``` ## 五、LayaAir与AS3的差异 在Flash AS3的原生API写法中可以直接继承Sprite,但是LayaAir引擎里主文档类入口(初始化引擎...
来源: Laya2.0_文档 发布时间: 20191206
...用法示例:** **派发:** ``` 派发对象.event(type:String,data:*=null); ``` **监听:** ``` 派发对象.on(type,caller,listener,args); ``` ## 五、LayaAir与AS3的差异 在Flash AS3的原生API写法中可以直接继承Sprite,但是LayaAir引擎里主文档类入口(初始化引擎...
来源: Laya2.0_文档 发布时间: 20210714
... Parameters Optional type: string (可选)事件类型,如果值为 null,则移除本对象所有类型的侦听器。 Returns EventDispatcher 此 EventDispatcher 对象。 offAllCaller offAllCaller(caller: any): EventDispatcher Inherited from EventDispatcher.offAllCaller Defined in laya/eve...
来源: Laya3.0_api 发布时间: 20231115
...RR), fault addr 0xe0 2022-03-08 16:19:22.013 11539-11539/? A/DEBUG: Cause: null pointer dereference 2022-03-08 16:19:22.013 11539-11539/? A/DEBUG: x0 0000007e8565c1c0 x1 0000000000000000 x2 0000000000000000 x3 0000000000000002 2022-03-08 16:19:22.013 11539-11539/? A/DEBUG: ...
来源: Laya_社区 发布时间: 20220309
...entListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); this.stage.scaleMode = StageScaleMode.NO_SCALE; this.stage.align = StageAlign.TOP_LEFT; __JS__Test(); } private function __JS__Test():void { __JS__("window.alert('...
来源: Laya_社区 发布时间: 20151106
...Box Defined in laya/d3/core/scene/bvh/BVHSpatialBox.ts:472 重算包围盒 null need Update by child contents need Update by List Returns void removeCell removeCell(cell: IBoundsCell): void Inherited from BVHSpatialBox.removeCell Defined in laya/d3/core/scene/bvh/BVHSpatialBox.ts:293 remove one Cell...
来源: Laya3.0_api 发布时间: 20231115