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

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

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

2082. 分享:图集资源做位图文本的工具类(知道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

2083. 复选框组件 · LayaAir3.3 · 引擎文档 · 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

2084. 设置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

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

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

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

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

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

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

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

2089. ENOENT: no such file or directory, open 'D:\layaidehello eleasewxgameLayaSample.js.map [ 40%]

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

2090. LayaAir3D 导出和使用U3D粒子特效 [ 40%]

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