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

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

2601. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 38%]

...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

2602. 路径显示会添加DrawCall,每增加一条路径都会添加,有什么办法降DrawCall [ 38%]

...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

2603. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 38%]

...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

2604. [LayaAir3]3.3.0-beta.4已知新bug汇总 [ 38%]

... { 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

2605. LayaAir引擎AS3与Flash原生AS3的开发差异(ActionScript-简介篇(AS3)-LayaAir引擎简介) [ 38%]

...用法示例:** **派发:** ``` 派发对象.event(type:String,data:*=null); ``` **监听:** ``` 派发对象.on(type,caller,listener,args); ``` ## 五、LayaAir与AS3的差异 在Flash AS3的原生API写法中可以直接继承Sprite,但是LayaAir引擎里主文档类入口(初始化引擎...

来源: Laya2.0_文档 发布时间: 20191206

2606. LayaAir引擎AS3与Flash原生AS3的开发差异(ActionScript-简介篇(AS3)-LayaAir引擎简介) [ 38%]

...用法示例:** **派发:** ``` 派发对象.event(type:String,data:*=null); ``` **监听:** ``` 派发对象.on(type,caller,listener,args); ``` ## 五、LayaAir与AS3的差异 在Flash AS3的原生API写法中可以直接继承Sprite,但是LayaAir引擎里主文档类入口(初始化引擎...

来源: Laya2.0_文档 发布时间: 20210714

2607. laya.d3.webxr.core.ButtonGamepad_API3.0 [ 37%]

... 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

2608. native2.12.0 laya2.7.1崩溃 [ 37%]

...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

2609. Laya中的宏编译要怎么用啊 [ 37%]

...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

2610. laya.d3.core.scene.bvhscenerendermanager.BVHRenderBox_API3.0 [ 37%]

...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