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

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

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

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

2592. CheckBox属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 40%]

...Color = "#ffffff"; //加载图集成功后,执行onLoad回调方法 Laya.loader.load([skin1,skin2], Handler.create(this, onLoaded)); } private function onLoaded():void { //创建一个CheckBox实例cb1 var cb1:CheckBox = new CheckBox(skin1); //添加到舞台上显示 Laya.stage.addChild(cb1); //...

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

2593. 水平滚动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 40%]

...ar.png", "atlas/comp/hscroll$down.png", "atlas/comp/hscroll$up.png"); Laya.loader.load(skins).then(() => { // 创建滚动条 var hs: Laya.HScrollBar = new Laya.HScrollBar(); hs.skin = "atlas/comp/hscroll.png"; hs.width = 300; hs.pos(300, 300); hs.min = 0; hs.max = 100; hs.changeHandler = new Lay...

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

2594. 垂直滚动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 40%]

...ar.png", "atlas/comp/vscroll$down.png", "atlas/comp/vscroll$up.png"); Laya.loader.load(skins).then(() => { // 创建滚动条 var vs: Laya.VScrollBar = new Laya.VScrollBar(); vs.skin = "atlas/comp/vscroll.png"; vs.height = 300; vs.pos(300, 300); vs.min = 0; vs.max = 100; vs.changeHandler = new La...

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

2595. 如何实现3d遮罩效果? [ 39%]

...ivate function loadUI():void { var _this:D3Base_TargetTexture = this; Laya.loader.load(["../../../../res/threeDimen/ui/button.png"], Handler.create(null, function():void { var btn:Button = new Button(); btn.skin = "../../../../res/threeDimen/ui/button.png"; btn.label = "切...

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

2596. zip更新模式缓存是怎么读取的?? [ 39%]

...称: * 'downloading' 下载中,这时候downloadPercent有值 * 'downloadError' 下载错误 * 'downloadOK' 下载成功。 * 'updating' 更新中,这时候 curfile有值,表示正在更新的文件 * 'updateError' curfile更新错误。因为curfile不在dcc列表,或者文件内容与dcc...

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

2597. 字体切片组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 39%]

...组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load([this.TestClipNum, this.TestFontClip, this._ClipNum, this._FontClip, this._ClipNum1]).then( ()=>{ this.ShowContent(); } ); } private ShowContent(): void { var clipnum: Laya.FontClip = new Laya.FontClip(this._Cl...

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

2598. drawTexture 画出来的数据会有以前的数据 [ 39%]

...01-13 11:36 this.url = comp/lhjicon_5.png" this.cached_texture = Laya.loader.getRes(this.url) // 每次重新绘制的时候 this.graphics.clear() this.graphics.drawTexture(this.cached_texture) // 而不是每一次都 drawcanvas 然后再转成 texture,drawcanvas作用就跟截屏一样 kezh...

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

2599. 3D场景环境设置 · LayaAir3.3 · 引擎文档 · LAYABOX [ 39%]

....create(null, function (res:any){ Laya.stage.addChild(res); })); //用Laya.loader的方式加载,加载后根节点是Scene2D Laya.loader.load('scene/Game.ls', Laya.Handler.create(this, this.onLoaded), Laya.Handler.create(this, this.onLoading)).then( (res)=>{ let scene = res.create(); //scene.s...

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

2600. Laya.Pool用法 [ 39%]

...关于遮罩的用法,在哪块可以找到? Laya.URL.basePath与Laya.loader.load用法 const 用法 关于几种文本的区别与用法 能否恢复Animation.getGraphicBounds在1.6时的用法 关于__JS__的用法有没有相关教程或者例子链接 贝塞尔用法 Matrix4x4的decompose函...

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