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

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

2081. unity中的模型导出后在laya中显示不正常 [ 41%]

...也可以继续在laya中对camera进行操作: var scene = Laya.stage.addChild(Laya.Scene.load("res/layaScene.ls")); scene.once(Laya.Event.HIERARCHY_LOADED, this, function (sceneTemp) { var camera = sceneTemp.getChildByName("Main Camera"); camera.transform.translate(new Laya.Vector3(0, 0, 200)); ...

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

2082. 下拉选项框组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 41%]

...,item4,item5"); ComboBox.labelSize = 30; ComboBox.itemSize = 25 this.owner.addChild(ComboBox); ComboBox.autoSize = true; ComboBox.pos(200, 200); }); } } Copyright ©Layabox 2026 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:59 img{cursor:pointer}

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

2083. [0]Spine3.8.75报错:Error: Unsupported skeleton data, please export with a newer version of Spine. [ 41%]

...    this.skeleton = this.templet.buildArmature();         Laya.stage.addChild(this.skeleton);         this.skeleton.pos(laya_width/2,laya_height/2);         this.skeleton.scale(0.5, 0.5);         this.skeleton.on(Event.STOPPED, this, this.play);         this.play();     }   ...

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

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

...ig.tips.haveNoTheChar, char); } sp.texture = tx; this.chars.push(sp); this.addChild(sp); } this.sortCharsByAlign(this._align); } /** * 水平对齐方式 */ public set align(v: string) { if (v === this._align) { return; } this._align = v; this.sortCharsByAlign(v); } public get align(): string { retu...

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

2085. 复选框组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 41%]

...aya.CheckBox { let cb: Laya.CheckBox = new Laya.CheckBox(skin); this.owner.addChild(cb); cb.labelColors = "white"; cb.labelSize = 20; cb.labelFont = "Microsoft YaHei"; cb.labelPadding = "3,0,0,5"; return cb; } private updateLabel(checkBox: Laya.CheckBox): void { checkBox.label = checkBox.selected ? ...

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

2086. 设置transform.localRotation之后,就不能再使用transform.rotate了 [ 41%]

...hildAt(0).clone(); ele.transform.position=new Laya.Vector3(0, 0, 0); scene.addChild(ele); ... ele.transform.rotate(new Laya.Vector3(10, 0, 0), true); //这里会有效 ele.transform.localRotation=new Laya.Quaternion(0, 0,0,0); //这里也还是有效的 ele.transform.rotate(new Laya.Vector3(30, 0, 0...

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

2087. 位图字体的制作与使用(TypeScript-LayaAir基础篇(TS)-文本) [ 41%]

...ont; txt.leading = 15; //把文本添加到场景中的bf节点下 this.bf.addChild(txt); } } ``` 上面的代码运行效果如下图的蓝色框内所示: ![img](img/20.png) > 上图非蓝色框的是FontClip组件的效果,如果只是简单的单行位图文本,FontClip也可以满足,...

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

2088. 用javascript如何实现游戏登录游戏前的资源加载进度,如何将图片,音乐等素材加载到界面通过加载条显示加载进度 [ 41%]

...LoadProgressBinder.bindAll) this.progressUI.UIMenu.value = 0.0; Laya.stage.addChild(this.progressUI.displayObject); Laya.timer.loop(100, this, this.updataPosition); this.loadMainDatas(); } public updataPosition() { this.progressUI.setPosition(Laya.stage.width / 2, Laya.stage.height / 2); } public lo...

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

2089. UI加载完成后无法获取控件的大小——超详细版问题 [ 40%]

...d(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); console.log("myref-onloaded", testUI.myref.getBounds()); console.log("mypan-onloaded", testUI.mypan.getBounds()); Laya.stage.event(Laya.Event.RESIZE) console.log("myref-event_resize", testUI.myref.getBounds(...

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

2090. laya.display.Node [ 40%]

...c Methods Show Inherited Public Methods MethodDefined By  Node()Node  addChild(node:Node):Node 添加子节点。 Node  addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node  addChildren(... args):void 批量增加子节点 Node  addComponent(type:Class):* ...

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