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

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

131. 深入理解LayaAir引擎架构和实现原理(二)项目调试原理及完美开发调试方案 [ 51%]

...rkspaceRoot}/src/*" }, }, ] }task.json { "version": "2.0.0", "tasks": [ { "label": "gulp", "type": "shell", "command": "gulp", "group": { "kind": "build", "isDefault": true } }, { "label": "uglify", "type": "shell", "command": "gulp uglify", "group": { "kind": "build", "isDefault": true } }, { "labe...

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

132. Spine 间隔一段时间卡顿5000毫秒左右,期间GPU占用极高, Demo已上传 [ 50%]

...this, () => { ufo.play("ludo_ufo_feixing", true); }); ufo.on(Laya.Event.LABEL, this, (e) => { if (e.name == "xiaoshi") { ufo.offAllCaller(this); // ufo.removeSelf();   } });  })); }  genSpine(url, handler: Laya.Handler) { var templet = new Laya.SpineTemplet(Laya.SpineVersion.v4_0); templet....

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

133. 时间轴动画 · LayaAir3.4 · 引擎文档 · LAYABOX [ 48%]

...点里只能看到Animator,如果是2D节点只能选Animator2D。 [!Tip|label:Tips] Animator2D是2D动画组件,Animator是3D动画组件。 操作顺序如动图1-6所示: (图1-6) 然后,在属性面板中可看到Animator组件。点击Animator组件中的Controller,选择已有的...

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

134. 插件开发说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 47%]

...并用代码控制弹出。方法为: let menu = IEditor.Menu.create([ { label: "test" , click : function() { console.log("clicked"); } } ]); //当需要弹出时 menu.show(); 菜单也支持级联,并且不限层数。例如: IEditor.Menu.create([ { label: "test" , submenu: [ { label : "a" },...

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

135. 分享:关于自定义场景继承的实现 [ 47%]

... ui { export class CustomSceneUI extends BaseScene { public txt_hello:Laya.Label; constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("CustomScene"); } } REG("ui.CustomSceneUI",CustomSceneUI); }   创建runtime类 如果想方便的引用导出类的组件,应...

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

136. 组件装饰器说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 47%]

... ) //拿到 Image 组件 private image: Laya.Image; @property( { type:Laya.Label } ) //拿到 Label 组件 private label: Laya.Label; @property( { type:Laya.Button } ) //拿到 Button 组件 private button: Laya.Button; @property( { type:Laya.Sprite } ) //拿到 Sprite 组件 private sprite: Laya.Sp...

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

137. laya.ui.UIGroup [ 43%]

...ector.<ISelect>[read-only] 项对象们的存放数组。 UIGroup  labelBold : Boolean 表示按钮文本标签是否为粗体字。 UIGroup  labelColors : StringUIGroup  labelFont : String 表示按钮文本标签的字体名称,以字符串形式表示。 UIGroup  labelPadding : St...

来源: laya_api 发布时间: 20170929

138. laya.ui.UIGroup [ 43%]

...ector.<ISelect>[read-only] 项对象们的存放数组。 UIGroup  labelBold : Boolean 表示按钮文本标签是否为粗体字。 UIGroup  labelColors : StringUIGroup  labelFont : String 表示按钮文本标签的字体名称,以字符串形式表示。 UIGroup  labelPadding : St...

来源: Laya2.0_api 发布时间: 20190513

139. laya.ui.ComboBox [ 43%]

...oBox  itemSize : int 下拉列表项标签的字体大小。 ComboBox  labelBold : Boolean 表示按钮文本标签是否为粗体字。 ComboBox  labelColors : String 获取或设置对 ComboBox 组件所包含的 Button 组件的文本标签颜色。 格式:upColor,overColor,downColor,disa...

来源: laya_api 发布时间: 20170929

140. laya.ui.Button [ 42%]

... Sprite  iconOffset : String图标x,y偏移,格式:100,100Button  label : String 按钮的文本内容。 Button  labelAlign : String标签对齐模式,默认为居中对齐。Button  labelBold : Boolean 表示按钮文本标签是否为粗体字。 Button  labelColors : String 表...

来源: laya_api 发布时间: 20170929