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

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

301. 请问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

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

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

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

305. 2.12.2beta1 诸多bug [ 38%]

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

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

306. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 38%]

...码,可以初始化A*的地图数据 //读取地形图 this.aStarMap = Loader.getTexture2D("res/threeDimen/scene/TerrainScene/Assets/AStarMap.png"); //获得地图数据 var aStarArr = this.createGridFromAStarMap(this.aStarMap); //使用astar初始化地图数据 this.graph = new (window as any).G...

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

307. 时间轴动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 37%]

... ```javascript //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas", Laya.Handler.create(this, onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```javascript //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 ...

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

308. 时间轴动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 37%]

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

309. 时间轴动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 36%]

...图集。 ```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

310. laya.ui.ProgressBar_API3.0 [ 34%]

...。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/progress.png", "resource/ui/progress$bar.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { progressBar = new ProgressBar("resource/ui/progress.pn...

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