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

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

11. LayaAir DebugPanel 调试工具(ActionScript-2D进阶篇(AS3)-调试相关) [ 64%]

...rite(); //添加到舞台 Laya.stage.addChild(Img); Img.loadImage("res/img/monkey1.png",200); } } } ``` 运行效果如图1所示 ![图1](img/1.png) (图1) ### 2、刷新显示对象节点树 默认状态下,显示对象节点树中只有`DebugInfoLayer`节点,而这个节点开发者不用管...

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

12. 内存优化方式(JavaScript-2D进阶篇(JS)-性能优化) [ 63%]

...ar assets = []; 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() { for (var i = 0, len = assets.length; i ...

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

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

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

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

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

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

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

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

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