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

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

61. 开放数据域组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 62%]

...nAwake(): void { let opendata = new Laya.OpenDataContextView(); Laya.stage.addChild(opendata); opendata.pos(100,100); opendata.size(500,500); } } 成功创建开放数据域视图节点后,我们只是完成了引擎层面要完成的工作流程,接下来我们还要完成微信小游戏层面...

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

62. HTTP通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 61%]

...text.align = "center"; this.text.y = 20; this.text.centerX = 0; this.owner.addChild(this.text); } /** * 发起HTTP连接请求 */ private connect(): void { //创建HttpRequest对象 this.hr = new HttpRequest(); //请求响应的进度改变时触发 this.hr.on(Event.PROGRESS, this, this.onHttpReques...

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

63. 2D相机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 60%]

...大小 this.area2D.pos(100, 100); this.area2D.size(200, 200); this.owner.addChild(this.area2D); //创建2D相机 this.camera2D = this.area2D.addChild(new Laya.Camera2D); //开发者可以根据需求自行设置相机的各项属性,例如: //将相机设为主相机 this.camera2D.isMain = true;...

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

64. Sprite3D添加组件或脚本(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 60%]

...function onComplete():void { //记载场景 var scene:Scene3D = Laya.stage.addChild(new Scene3D()) as Scene3D; //加载相机 var camera:Camera = scene.addChild(new Camera(0, 0.1, 100)) as Camera; camera.transform.translate(new Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Vector3(-15, 0, 0), t...

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

65. 图像组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 60%]

... = new Laya.Image("resources/layaAir.png"); img.pos(165, 62.5); this.owner.addChild(img); } } Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:59 img{cursor:pointer}

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

66. runTime使用(TypeScript-IDE篇(TS)-组件化开发相关) [ 59%]

....graphics.drawRect(0, 0, 300, 300, "#ffcccc"); //添加到stage Laya.stage.addChild(bgPage); //实例化MonkeyPageUI页面 var monkeyPage: ui.MonkeyPageUI = new ui.MonkeyPageUI(); //为了能够清楚的看到这个页面所在的位置,在此设置设置一个背景色 monkeyPage.graphics.drawRec...

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

67. 添加或修改物理ChainCollider属性points时,报错 [ 59%]

...is.bullet); flyer.pos(Laya.stage.mouseX, Laya.stage.mouseY); this._gameBox.addChild(flyer); this._chains.points="118,99,158,70,218,99,258,70,318,99,358,70,418,99,458,70,518,99,558,70"; } /**开始游戏,通过激活本脚本方式开始游戏*/ startGame(): void { if (!this._started) { t...

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

68. 如何通过名字 或 索引播放 spine 动画 [ 59%]

...iyangyang_2.sk"); // skeleton.play(0,true);//播放不了别的 this.owner.addChild(skeleton); skeleton.pos(500,500);   哪里写的有问题 大佬看看 2019-06-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复...

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

69. 单选框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 58%]

...elSize = 20; radio.labelBold = true; radio.labelVAlign = "top"; this.owner.addChild(radio); } } 效果如动图2-1所示: (动图2-1) Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新时间: 2025-10-10 16:27:59 img{cursor:pointer}

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

70. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 58%]

...onAwake(): void { let txt = new Laya.Text(); // 添加到舞台 Laya.stage.addChild(txt); txt.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 txt.size(500, 30); //大小 txt.pivot(txt.width/2, txt.height/2); //轴心点 txt.text = "大家好,欢迎各位开发者使用Laya...

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