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

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

1221. CheckBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 40%]

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

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

1222. 位图切片组件 · LayaAir3.0文档 · 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_文档 发布时间: 20230830

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

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

1224. 分享:图集资源做位图文本的工具类(知道fontclip组件的可以略过了,之前一直没注意到这个组件) [ 39%]

...is.getResName(char); let sp: Laya.Sprite = this.getSprite(); let tx = Laya.Loader.getRes(resName); if (!tx) { console.warn(TipConfig.tips.haveNoTheChar, char); } sp.texture = tx; this.chars.push(sp); this.addChild(sp); } this.sortCharsByAlign(this._align); } /** * 水平对齐方式 */ public set al...

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

1225. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 39%]

...引擎 Laya.init(500,500); var skins:Array = [ "res/button-1.png" ]; Laya.loader.load(skins, Handler.create(this, onUIAssetsLoaded)); } public function onUIAssetsLoaded():void { var btn:Button = new Button("res/button-1.png"); Laya.stage.addChild(btn); //创建隐藏的file并且把它和按钮对...

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

1226. rigidBody.applyForce 物体不会移动 [ 39%]

...大效果点击的时候按钮位移动了是否是我做法有问题 Laya.loader.create 不会反馈失败状态跟描述不符合 问题状态 最新活动: 2020-09-17 11:28 浏览: 411 关注: 1 人

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

1227. 水平滚动条组件 · LayaAir3.0文档 · LAYABOX [ 39%]

...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_文档 发布时间: 20230911

1228. 垂直滚动条组件 · LayaAir3.0文档 · LAYABOX [ 39%]

...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_文档 发布时间: 20230911

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

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

1230. 字体切片组件 · LayaAir3.0文档 · 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_文档 发布时间: 20230901