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

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

21. 内存优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 56%]

...ets: Array = [] assets.push("res/apes/monkey0.png"); assets.push("res/apes/monkey1.png"); assets.push("res/apes/monkey2.png"); assets.push("res/apes/monkey3.png"); Laya.loader.load(assets, Laya.Handler.create(this, onAssetsLoaded)); function onAssetsLoaded():void { for(var i:number = 0, len: number ...

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

22. 内存优化方式(ActionScript-2D进阶篇(AS3)-性能优化) [ 56%]

...s:Array = []; assets.push("res/apes/monkey0.png"); assets.push("res/apes/monkey1.png"); assets.push("res/apes/monkey2.png"); assets.push("res/apes/monkey3.png");    Laya.loader.load(assets, Handler.create(this, onAssetsLoaded));    private function onAssetsLoaded():void {     for(var i...

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

23. Laya.Sprite loadImage 参数问题 [ 55%]

...台 Laya.stage.addChild(Img); //加载显示图片 Img.loadImage("res/img/monkey1.png", w, h);//报错 return Img; } /**创建红色滤镜位图**/ private creteRedFilter():void{ //颜色滤镜矩阵,红色 var colorMatrix:any = [ 1, 0, 0, 0, 0, //R 0, 0, 0, 0, 0, //G 0, 0, 0, 0, 0, //B 0, 0, 0, 1...

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

24. 资源加载 · LayaAir3.3 · 引擎文档 · LAYABOX [ 48%]

..., type: "image" }, { url: "https://layaair.com/3.x/demo/resources/res/apes/monkey1.png", type: Laya.Loader.IMAGE } ]; this.loadTextures(resArr); } /** 加载多个资源 * @param url 资源数组 */ loadTextures(url: Array<string>): void { //加载回调返回的类型,如果是多样的,...

来源: Laya3.0_文档 发布时间: 20251010

25. 2D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 37%]

... [] assets.push("resources/apes/monkey0.png"); assets.push("resources/apes/monkey1.png"); assets.push("resources/apes/monkey2.png"); assets.push("resources/apes/monkey3.png"); Laya.loader.load(assets).then(()=>{ for(var i:number = 0, len: number = assets.length; i<len; ++i) { var asset:string ...

来源: Laya3.0_文档 发布时间: 20251010