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

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

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

...度进行显示,下面的编码为就是错误的。 ```javascript Laya.loader.load(urls, Handler.create(this, onAssetLoaded), Handler.create(this, onLoading)); ``` 在上面的代码中,使用`Handler.create(this, onLoading)`返回的回调方法,是要处理progress加载进度事件,...

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

42. 预加载结束之后还是报lose skin [ 76%]

预加载结束之后还是报lose skin private loadRes():void{ Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this, this.onAssetLoaded),Laya.Handler.create(this, this.onLoading, null, false)); } private onLoading(progress: number): void { console.log("加载进度: " + progress); } ...

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

43. Laya2.6.0 升级至Laya2.8.0 Native环境 加载ttf 字体不生效 [ 75%]

...ont1Req =  new Promise((resolve => {             Laya.loader.load("res/fonts/OPPOSANS-R.TTF", Laya.Handler.create(this, (success: boolean) => {                 if (!success) {                     console.error("OPPOSANS-R ttf 字...

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

44. js预加载声音报错 [ 75%]

js预加载声音报错 Laya.loader.load(slot_sound_res, Laya.Loader.SOUND, Handler.create(this, onSoundProgress, null, false)); //游戏资源加载进度函数 function onSoundProgress(pro) { console.log("sound" + pro); } 这样写哪里错了? 2016-12-16 添加评论 免费帖 --> 分享 微...

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

45. 分享:改变图片皮肤,保持图片原样宽高显示 [ 74%]

... var image:Image; public function LayaAirDemo() { Laya.init(800,600); Laya.loader.load(["bg.jpg","logo.png"],Handler.create(this,onLoaded)); } private function onLoaded():void { image=new Image(); image.skin="logo.png"; Laya.stage.addChild(image); Laya.stage.on(Event.CLICK,this,onClick); } private f...

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

46. 进度条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 74%]

...加载进度条资源,图片资源来自“引擎API使用示例” Laya.loader.load(["resources/res/ui/progressBar.png", "resources/res/ui/progressBar$bar.png"]).then(() => { // 创建进度条 this.progressBar = new Laya.ProgressBar("resources/res/ui/progressBar.png"); this.progressBar.pos(10...

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

47. 加载场景成功时,并不是场景上所有资源都已加载完 [ 74%]

...尴尬了,但或许我有没用对的地方。。。     另外:SceneLoader为啥不加一个progress啊,非常实用的功能,现在得自己load list一下 http://ask.layabox.com/question/39354       2018-11-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

48. ProgressBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 73%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(["res/ui/progressBar.png", "res/ui/progressBar$bar.png"], Handler.create(this, onLoadComplete)); })(); function onLoadComplete() { progressBar = new ProgressBar("res/ui/progressBar.png"); progressBar.width = 400; ...

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

49. ProgressBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 73%]

...HOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //加载资源 Laya.loader.load(["../../../../res/ui/progressBar.png", "../../../../res/ui/progressBar$bar.png"], Handler.create(this, onLoadComplete)); } /***加载资源完成***/ private function onLoadComplete():void { //实例化进度条 p...

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

50. ProgressBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 73%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(["res/ui/progressBar.png", "res/ui/progressBar$bar.png"], Handler.create(this, this.onLoadComplete)); } private onLoadComplete(): void { this.progressBar = new ProgressBar("res/ui/progressBar.png"); this.progressB...

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