大约有 580 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0061 秒)
Laya_社区(372) Laya2.0_文档(74) Laya_示例(51) Laya2.0_示例(39) Laya3.0_文档(34) Laya3.0_api(8) Laya2.0_api(2)
...HOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //加载资源 Laya.loader.load([buttonSkin, clipSkin, bgSkin], laya.utils.Handler.create(this,onSkinLoaded)); } /***加载资源完成***/ private function onSkinLoaded(e:*=null):void { //显示背景图 showBg(); //创建计数器 createCounte...
来源: Laya2.0_文档 发布时间: 20210714
...; import laya.utils.Handler; /** * ... * @author ww */ public class TestTTFLoader { public function TestTTFLoader() { Laya.init(1000, 900); Laya.loader.load("res/remember.ttf",new Handler(this,test)); } private function test():void { var text:Text; text = new Text(); text.fontSize = 30;...
来源: Laya_社区 发布时间: 20191211
... ```typescript //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```typescript //创建一个Animation实例 var tl:Laya.Animation = new Laya.Animation(); //...
来源: Laya2.0_文档 发布时间: 20210715
...图集。 ```java //加载图集成功后,执行onLoad回调方法 Laya.loader.load("res/atlas/ui.atlas", Handler.create(this, onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```java //创建一个Animation实例 var tl:Animation = new Animation(); //加载动画文件 tl.lo...
来源: Laya2.0_文档 发布时间: 20210715
...组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load([this.buttonSkin, this.clipSkin, this.bgSkin]).then( ()=>{ this.onSkinLoaded(); } ); } private onSkinLoaded(e: any = null): void { this.showBg(); this.createTimerAnimation(); this.showTotalSeconds(); this.creat...
来源: Laya3.0_文档 发布时间: 20251010
...黑面 请教一个关于laya2.5d项目美术规范的问题哈 请问下loader如何强制加载一个文件,避免浏览器的缓存 如何导入3D模型,以及展示与编辑它 问题状态 最新活动: 2018-08-22 11:22 浏览: 3448 关注: 6 人 leonszheng • 2018-08-20 19:02 我用的就...
来源: Laya_社区 发布时间: 20180227
...4、开始调用你分包后的js文件,参考上图1所示,使用laya.loader.load对js进行加载,加载完成后,如2所示,使用__JS__('window.eval(data)');翻译成h5后,将json的data数据在window下进行加载。并进行调用。 Desktop2.rar 2016-08-11 1 0 分享 微博 QZON...
来源: Laya_社区 发布时间: 20160514
... import Label = laya.ui.Label; import Handler = laya.utils.Handler; import Loader = laya.net.Loader; import Stage = laya.display.Stage; class TestUI extends ui.test.testwhUI { constructor() { super(); this.mypan.vScrollBarSkin = ""; Laya.stage.on(Laya.Event.RESIZE, this, this.fitDOMElements); this.m...
来源: Laya_社区 发布时间: 20170720
...script //初始化引擎 Laya.init(800, 600); //预加载所需资源 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { //实例化Panel组件 var panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc")...
来源: Laya2.0_文档 发布时间: 20210715
...ources/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 = assets[i]; //查看log,清理前资源一直在内存中 console.log(Laya.loader.getRes(asset)); //调...
来源: Laya3.0_文档 发布时间: 20251010