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

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

301. 位图切片组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 49%]

...组件均已创建完毕,此方法只执行一次 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

302. 微信小游戏IDE加载位图字体,提示错误 [ 48%]

...nt.__proto.parseFont (http://127.0.0.1:61385/game/code.js:803:17)     at Loader.__proto.onLoaded (http://127.0.0.1:61385/game/code.js:12700:11)     at HTMLImage.onload (http://127.0.0.1:61385/game/code.js:21213:15)     at Image._source._source.onload (http://127.0.0.1:61385/game/code.js:20175:...

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

303. [LayaAirIDE3]2d相机打包后问题 [ 48%]

...载建筑图片     private loadBuildingImage(): void {         Laya.loader.load(             "res/building.png", // 你的建筑图片路径             Laya.Handler.create(this, () => {                 // 加载完成后绘制到building Sprite上               ...

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

304. laya.ui.Dialog_API3.0 [ 47%]

...。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/btn_close.png", Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { dialog = new Dialog_Instance();//创建一个 Dialog_Instance 类的实例对象 dialog...

来源: Laya3.0_api 发布时间: 20231115

305. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 45%]

...; } private function beginLoad():void { //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); } private function onLoad2():void { Laya.timer.once(2000, this, onLoaded); } private function onLoaded():void { //实例UI界面 //var testView:TestView = n...

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

306. 请问laya有没有类似翻页容器(pageView)的组件? [ 45%]

... text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.text = i18n[`tips_text$text_i18n$${1101 + index}`][ConfigInfo.lang] } public setCurPage(index: number) { if (this.m_index != index) { for (let i = 1; i < 7; i++) { let skin = "u...

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

307. ViewStack属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 42%]

...lor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(this.comp); //点击Tab...

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

308. ViewStack属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 41%]

...lor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(this.comp); /...

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

309. ViewStack属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 41%]

...lor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("./res/atlas/ui.atlas", Handler.create(this, onLoaded)); } private function onLoaded():void { //创建一个UI实例 comp = new ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(comp); //点击Tab...

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

310. 2.12.2beta1 诸多bug [ 38%]

...,因为loadImage为异步,而在image的skin更换皮肤时,可以从loader里使用getRes加载到texture,但此时texture还未加载完成,所以导致source._bitmap为null,无法显示的问题,这个问题目前我们没有较好的解决方案,只能使用预加载或在loadIma...

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