大约有 20 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0030 秒)
...式版,文中如有不同请以最新LayaAirIDE版本为准。* 图集(Atlas)是游戏开发中常见的一种美术资源,通过工具将多张图片合并成一张大图,并通过atlas与json等格式的文件存放原始图片资源信息。图1就是采用LayaAirIDE打包好的一张png图...
来源: Laya2.0_文档 发布时间: 20210714
...式版,文中如有不同请以最新LayaAirIDE版本为准。* 图集(Atlas)是游戏开发中常见的一种美术资源,通过工具将多张图片合并成一张大图,并通过atlas与json等格式的文件存放原始图片资源信息。图1就是采用LayaAirIDE打包好的一张png图...
来源: Laya2.0_文档 发布时间: 20210714
...式版,文中如有不同请以最新LayaAirIDE版本为准。* 图集(Atlas)是游戏开发中常见的一种美术资源,通过工具将多张图片合并成一张大图,并通过atlas与json等格式的文件存放原始图片资源信息。图1就是采用LayaAirIDE打包好的一张png图...
来源: Laya2.0_文档 发布时间: 20210715
...引擎 Laya.init(800,600); //预加载所需资源 Laya.loader.load("res/atlas/comp.atlas",Handler.create(this,onLoaded)); } private function onLoaded():void { //实例化Panel组件 var panel:Panel = new Panel(); //给panel添加背景色 panel.graphics.drawRect(0,0,100,100,"#ffcccc"); //给panel...
来源: Laya2.0_文档 发布时间: 20210715
...引擎 Laya.init(800, 600); //预加载所需资源 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { //实例化Panel组件 var panel: Laya.Panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ff...
来源: Laya2.0_文档 发布时间: 20210715
...引擎 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"); //给panel设置...
来源: Laya2.0_文档 发布时间: 20210715
...eFile; })); ``` #### 3、2D图集的使用 对于2D图集,预加载图集atlas文件即可,由于进行纹理压缩转换的时候,会自动在图集atlas中添加纹理压缩文件信息,所以引擎在加载图集的时候,会检测是否包含了纹理压缩转换的信息,如果包...
来源: Laya2.0_文档 发布时间: 20210714
...源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //实例化导出的UI类 var efc = new ui.TestPUI(); //添加到舞台 Laya.stage.addChild(efc); } ``` 运行后,按钮被按下时,动画效果...
来源: Laya2.0_文档 发布时间: 20210715
...源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //实例化导出的UI类 var efc:ui.EffectAnimationDemoUI = new ui.EffectAnimationDemoUI(); //添加到舞台 Laya.stage.addChild(efc); } }...
来源: Laya2.0_文档 发布时间: 20210715
...载图集资源,加载成功后添加到舞台 Laya.loader.load("./res/atlas/ui.atlas",Handler.create(this,onLoaded)); } private function onLoaded():void { //实例导出的UI类 var efc:EffectAnimationDemoUI = new EffectAnimationDemoUI(); //添加到舞台 Laya.stage.addChild(efc); } } } ``` 运...
来源: Laya2.0_文档 发布时间: 20210715