大约有 2,311 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0062 秒)
Laya_社区(1514) Laya2.0_文档(259) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(80) Laya3.0_文档(75) Laya2.0_api(74) laya_api(70)
... 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
...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
...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
...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
...ont; txt.leading = 15; //把文本添加到场景中的bf节点下 this.bf.addChild(txt); } } ``` 上面的代码运行效果如下图的蓝色框内所示:  > 上图非蓝色框的是FontClip组件的效果,如果只是简单的单行位图文本,FontClip也可以满足,...
来源: Laya2.0_文档 发布时间: 20210715
...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
...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
...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
...aya.stage.bgColor = '#23238E'; //将文本内容添加到舞台 Laya.stage.addChild(txt); } } new GameMain(); 海货 • 2018-07-15 16:17 上边是代码 wq • 2018-08-01 14:00 那不是很麻烦,要全部注释忘。 nonfiction • 2018-09-04 11:33 1.7.19,新建示例项目,发布到微信...
来源: Laya_社区 发布时间: 20180715
...NE 微信 颜颜粑粑 赞同来自: var particleSprite3D:Sprite3D = scene.addChild(Sprite3D.load("...")) as Sprite3D; particleSprite3D.transform.position = new Laya.Vector3(100,0,0); 这样写 无法移动例子效果? 2018-05-09 0 6 分享 微博 QZONE 微信 绝地求生 赞同来自: unity5...
来源: Laya_社区 发布时间: 20161219