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

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

441. 动画不显示 [ 60%]

...             {                     urls.push("Res/atlas/array/stand/" + ((dir*4) + i) + ".png");                 }                 for (var j:int = 0 ; j < 8 ; j ++)                 {                     urls.push("Res/at...

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

442. radioGroup设置labels后,每个radio的icon皮肤无法显示了 [ 60%]

...没有显示了,代码如下: 在入口文件: Laya.loader.load("res/atlas/template/QuestionDialog.atlas", Handler.create(null)); 对应的场景代码里: var dialog = new QuestionDialogUI();          Laya.stage.addChild(dialog);          dialog.popup();          dia...

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

443. 分享-js资源进度加载 [ 60%]

...示帧频信息 Laya.Stat.show(); //加载进度ui var arr = [{ url: "res/atlas/Progress.json", type: Laya.Loader.ATLAS }]; Laya.loader.load(arr, Laya.Handler.create(this, this.onProgress)); } onProgress() { this.Progress = new Progress(); Laya.stage.addChild(this.Progress); //加载资源进度并...

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

444. 单选框组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 60%]

...建完毕,此方法只执行一次 onAwake(): void { this.radio.skin = "atlas/comp/radio.png"; //皮肤 this.radio.stateNum = 3; //皮肤状态 this.radio.label = "确定"; //文本标签 this.radio.labelFont = "宋体"; //文本标签字体 this.radio.labelSize = 20; //文本标签字体大小 th...

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

445. webgl 下当对象子显示对象存在panel且panel有子集时,旋转此显示对象会导致此显示对象的同级对象消失!(1.7.10beta) [ 60%]

...; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.loader.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loadComp)); } private loadComp():void{ var parent:ui.ParentViewUI = new ui.ParentViewUI(); Laya.stage.addChild(parent); //当注释掉设置rotaion的代...

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

446. 动效模板(JavaScript-LayaAir基础篇(JS)-动画基础) [ 59%]

...源,加载成功后将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

447. 动效模板(TypeScript-LayaAir基础篇(TS)-动画基础) [ 59%]

...源,加载成功后将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

448. 动画实例在调用含有名字参数的时候获取不到边界 [ 59%]

...n()); this.loadUnit(); } loadUnit(){ for(let i of this.playerUnit ){ i.loadAtlas("./character/m1.atlas",Laya.Handler.create(this,this.playerUnitLoaded)); } for(let i of this.enemyUnit){ i.loadAtlas("./character/m1.atlas",Laya.Handler.create(this,this.enemyUnitLoaded)); } } player...

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

449. 关于LayaAir IDE使用工具图集打包无生成文件的问题 [ 59%]

...a_15.png R 1375BB85 chara_16.png     未见生成合成的png文件以及atlas 或 json ,请问如何处理, ide版本号1.7.11beta   附件 : --> 2017-11-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 8 个回复 w...

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

450. 精灵 · LayaAir3.4 · 引擎文档 · LAYABOX [ 59%]

...毕,此方法只执行一次 */ onAwake(): void { this.sprite.loadImage("atlas/comp/image.png"); //纹理:图片路径 this.sprite.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置:屏幕中心 this.sprite.x = Laya.stage.width/2; //x、y分别设置位置 this.sprite.y =...

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