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

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

171. 物理系统之FixedConstraint(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 57%]

...ypescript override public function onStart() { this.fixedConstraint = this.owner.getComponent(FixedConstraint); //设置打破约束的力的阈值 this.fixedConstraint.breakForce = 1000; } override public function onUpdate() { if(this.fixedConstraint) { var mass = this.fixedConstraint.connectedBody...

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

172. 导航标签组组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 57%]

...tedIndex); tab.selectHandler = new Laya.Handler(this, this.onSelect); this.owner.addChild(tab); return tab; } private onSelect(index: number): void { console.log("当前选择的标签页索引为 " + index); } } 运行效果如下动图所示: (动图2-1) Copyright ©Layabox 2025 all right re...

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

173. [LayaAir3]3.3.2与设置组件灰显相关的 Bug 和 Crash [ 57%]

...date(normalizeTime: number): void { const sp = this.playStateInfo.animator.owner as Laya.Sprite; sp.graphics.repaint(); } } 修改后的完整源码见附件。 LayaTest2.zip 2025-10-27 0 0 分享 微博 QZONE 微信 lv 赞同来自: layabox 崩溃问题会在3.3.3版本修复 2025-10-17 1 0 分享 ...

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

174. [LayaAir3]3d刚体物体使用transform移动无效 [ 56%]

...是可以的,更新到3.2.2之后就没法控制了。 let cube = this.owner.getChildByName("Cube")as Laya.Sprite3D; cube.transform.position = new Laya.Vector3(0, 5, 0);------------------------------------------ 有人回复了,只有运动学才能控制了现在···· 附件 : --> Bugtest.zi...

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

175. 向stage下的scene里添加物体时报错 [ 56%]

...QZONE 微信 时光123 赞同来自: 使用Laya.stage.addchild. 或。this.owner.addChild 一样的错 2022-08-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 时光123 相关问题 缓动Tween能用在3D物...

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

176. 新手请问下如何开启Laya3D的physics [ 56%]

...forceActivationState(5); var flags=btColObj.getCollisionFlags(); if ((this.owner).isStatic){ if ((flags & 2)> 0) flags=flags ^ 2; flags=flags | 1; }else { if ((flags & 1)> 0) flags=flags ^ 1; flags=flags | 2; } btColObj.setCollisionFlags(flags); this._nativeColliderObject=btColObj; _su...

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

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

...coreLbl,具有代码提示效果。而script脚本获取只能通过this.owner.getChildByName("xxx") 等方式获取节点** - **建议:如果是页面级的逻辑,需要频繁访问页面内多个元素,使用runtime继承式写法,如果是独立小模块,功能单一,建议用script...

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

178. 下拉选项框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 55%]

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

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

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

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

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

180. 2D灯光与网格 · LayaAir3.3 · 引擎文档 · LAYABOX [ 55%]

...} = Laya; @regClass() export class lightTest extends Laya.Script { declare owner: Laya.Sprite; @property({ type: Laya.Sprite }) light1: Laya.Sprite; @property({ type: Laya.Sprite }) mesh1: Laya.Sprite; @property({ type: Laya.Sprite }) mesh2: Laya.Sprite; private light1Render: Laya.FreeformLight2D; p...

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