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

大约有 383 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0046 秒)

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

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

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

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

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

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

344. laya2.x 图集的资源版本管理问题 [ 52%]

...存在 https://3dparking-1256769450.cos.ap-shanghai.myqcloud.com/test/res/atlas/main.png   2019-06-13 0 12 分享 微博 QZONE 微信 kylin 赞同来自: 目前来看,即使加了版本管理,引用云上资源仍然引用的无版本号的资源。现在的问题是即使是无版本管理的...

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

345. 安卓上的百度小游戏,playMusic会出现多个背景音乐 [ 52%]

...的话,会有资源load不上来,报错:[error]Failed to load: res/atlas/test.atlas H5_Gamker • 2020-06-23 19:55 是不是换了适配库之后外面有些调用会对不上 157*****593 • 2020-06-23 20:16 清理一下缓存 H5_Gamker • 2020-06-24 09:33 换了新的库之后,之前的...

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

346. 位图切片组件 · LayaAir3.0文档 · LAYABOX [ 51%]

...dth >> 1, Laya.stage.height >> 1); // 位置 this.clip.skin = "atlas/comp/clip_num.png"; // 皮肤 this.clip.interval = 1000; // 切片动画的播放时间间隔1000毫秒 this.clip.clipX = 10; // 切片x轴数量 this.clip.autoPlay = true; // 动画自动播放 } } 二、通过代码...

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

347. 动效模板(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 51%]

...载图集资源,加载成功后添加到舞台 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

348. 输入文本组件 · LayaAir3.0文档 · LAYABOX [ 51%]

...行 this.txtin.overflow = "scroll"; //文本溢出 // this.txtin.skin = "atlas/comp/textinput.png"; //皮肤 this.txtin.bgColor = "#19a4f1"; //背景颜色 this.txtin.borderColor = "#f6ff03" //边框颜色 this.txtin.editable = true; //可编辑状态 // this.txtin.type = "password"; //输入框类...

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

349. laya.net.LoaderManager [ 51%]

...源是否已经加载完毕。 注意:cache参数只能对文件后缀为atlas的资源进行缓存控制,其他资源会忽略缓存,强制重新加载。 LoaderManager  decodeBitmaps(urls:Array):void 解码Texture或者图集 LoaderManager event(type:String, data:* = null):Boolean 派发...

来源: Laya2.0_api 发布时间: 20190513

350. 精灵 · LayaAir3.0文档 · LAYABOX [ 51%]

...毕,此方法只执行一次 */ 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_文档 发布时间: 20240528