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

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

1501. 如何获取animation的node节点? [ 43%]

...Name+".png"); // 读取图集生成大切片 let textureIns = Laya.Texture.create(texture, aniProps.res[aniProps.mc[options.srcName].frames[i].res].x, aniProps.res[aniProps.mc[options.srcName].frames[i].res].y, aniProps.res[aniProps.mc[options.srcName].frames[i].res].w, aniProps.res[aniProps.mc[opti...

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

1502. laya.d3.graphics.IndexBuffer3D_API3.0 [ 43%]

.../IndexBuffer3D" IndexBuffer3D Class IndexBuffer3D 请使用LayaGL.RenderOBJCreate.createIndexBuffer3D来创建 IndexBuffer3D 类用于创建索引缓冲。 Hierarchy IndexBuffer IndexBuffer3D NativeIndexBuffer3D Index Constructors constructor Properties _buffer _bufferType _bufferUsage _byteLength _...

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

1503. Clip属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 43%]

...ya.loader.load([this.buttonSkin, this.clipSkin, this.bgSkin], Laya.Handler.create(this, this.onSkinLoaded)); } private onSkinLoaded(): void { this.showBg(); this.createTimerAnimation(); this.showTotalSeconds(); this.createController(); } private showBg(): void { var bg: Image = new Image(this.bgSkin...

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

1504. 图片遮罩大小跟设置不一致 [ 43%]

...exture Laya.loader.load("https://s2.d2scdn.com/2017/12/ ... ot%3B, Handler.create(this, function() { var t = Laya.loader.getRes("https://s2.d2scdn.com/2017/12/ ... 6quot;); var ape = new Sprite(); ape.scaleX = 0.5 ape.scaleY = 1 ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.pos(20...

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

1505. HScrollBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 43%]

...e.bgColor = "#232628"; //加载资源 Laya.loader.load(this.skins, Handler.create(this, this.onSkinLoadComplete)); } /***加载资源完成***/ private onSkinLoadComplete(e:any=null):void { //创建水平滚动条 this.createHScroller(); } /***创建水平滚动条***/ private createHScroller():void...

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

1506. HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 [ 43%]

..., type : Laya.Loader.ATLAS} ]; Laya.loader.load(resourceArray,Laya.Handler.create(null,loadResourceComplete)); } function loadResourceComplete() { Laya.stage.addChild(new LoginView()); } })(); feiguangfu • 2018-03-16 09:55 这个是主的JS. 数据服务器都能正常接收,但是返回的值...

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

1507. VScrollBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 43%]

...e.bgColor = "#232628"; //加载资源 Laya.loader.load(this.skins, Handler.create(this, this.onSkinLoadComplete)); } /***加载资源完成***/ private onSkinLoadComplete(e:any=null):void { //创建垂直滚动条 this.createVScroller(); } /***创建水平滚动条***/ private createVScroller():void...

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

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

...成功后添加到舞台 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

1509. 弹窗视图组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

....load("resources/Prefab2D.lh").then(res => { let dlg: Laya.Dialog = res.create(); dlg.open(); }); } } 运行效果如下: (动图) 二、通过代码创建Dialog 在进行书写代码的时候,免不了通过代码控制UI,创建UI_Dialog类,通过代码设定Dialog相关的属性。...

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

1510. Laya.loader.clearTextureRes引起的内存泄露以及恢复图片显示闪烁 [ 43%]

...    Laya.loader.load(this.skPath.replace(".atlas",".png"),Laya.Handler.create(this,function(bit){                 var arr = Laya.Loader.getAtlas(this.skPath);                 arr.forEach(resUrl=>{                     var tex = Laya.Loader.getRes...

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