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

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

1071. 图集制作与使用详解(JavaScript-IDE篇(JS)-使用IDE创作) [ 44%]

...atlas方式图集使用示例 Laya.loader.load("./res/test/c1.atlas", Laya.Handler.create(this, onLoaded)); ```   `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应用广泛,不仅仅用于图集,所以为了识别是否为图集配置信息,在加载`.json`文...

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

1072. 图集制作与使用详解(TypeScript-IDE篇(TS)-使用IDE创作) [ 44%]

...as方式图集使用示例 Laya.loader.load("./res/atlas/test.atlas", Laya.Handler.create(this, this.onLoaded)); ``` `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应用广泛,不仅仅用于图集,所以为了识别是否为图集配置信息,在加载`.json`文件...

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

1073. laya.ui.Clip_API3.0 [ 44%]

...景颜色 var clip; Laya.loader.load("resource/ui/clip_num.png",laya.utils.Handler.create(this,loadComplete));//加载资源 function loadComplete() { console.log("资源加载完成!"); clip = new laya.ui.Clip("resource/ui/clip_num.png",10,1);//创建一个 Clip 类的实例对象 clip ,传入它...

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

1074. 设置适配SCALE_FIXED_WIDTH,结果少部分andriod机型不能正确适配屏幕 [ 44%]

...n);             Laya.loader.load("res/atlas/com/loading.atlas", Laya.Handler.create(this, this.loadGame));         }         private loadGame(): void {             var resArray = [                 { url: "res/atlas/lobby/create_room.atlas", type: Laya.Loader.ATLAS },   ...

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

1075. 图集制作与使用详解(ActionScript-IDE篇(AS3)-使用IDE创作) [ 44%]

...//atlas方式图集使用示例 Laya.loader.load("./res/atlas/test.atlas", Handler.create(this, onLoaded)); ``` `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应用广泛,不仅仅用于图集,所以为了识别是否为图集配置信息,在加载`.json`文件的...

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

1076. laya.ui.ColorPicker [ 44%]

...直方向中心线的距离(以像素为单位)。 Component  changeHandler : Handler 当颜色发生改变时执行的函数处理器。 默认返回参数color:颜色值字符串。 ColorPicker comXml : Object XML 数据。 Component customRenderEnable : Boolean[write-only] 设置是否...

来源: laya_api 发布时间: 20170929

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

...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); } ``` 运行后,按钮被按下时,动画效果如动图11所示: ![1...

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

1078. 1.76beta引擎库的BUG:Laya.List动态载入后,滑动时会将list框本身的滑动区域一并向滑动方向移动,会出现点击list中空白区域就无法滑动的情况 [ 44%]

...         this.list.itemRender = Item_List;         this.list.renderHandler = new Laya.Handler(this, this.onItemRender);         this.list.scrollBar.elasticBackTime = 200;         this.list.scrollBar.elasticDistance = 200;     }     open(): void     {         for(let i = 0; ...

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

1079. Button属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 43%]

...载资源成功后,执行onLoaded回调方法 Laya.loader.load(skin,Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个Button实例 var btn = new Laya.Button(skin); //将Button添加到舞台上 Laya.stage.addChild(btn); //设置Button相关属性 btn.width = 100; btn.height =...

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

1080. laya.d3.animation.AnimationClip_API3.0 [ 43%]

...lock=true的资源。 Returns void Static load load(url: string, complete: Handler): void Defined in laya/d3/animation/AnimationClip.ts:61 加载动画片段。 Parameters url: string 动画片段地址。 complete: Handler 完成回掉。load Returns void Globals "laya/d3/animation/AnimationClip" A...

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