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

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

71. 如何对3D精灵进行鼠标检测(ActionScript-3D基础(AS3)-LayaAir3D之鼠标交互) [ 56%]

...除碰撞到的物体 text.text = "碰撞到了" + _outHitResult.collider.owner.name ; trace("碰撞到物体!!") } } ``` ![](img/2.gif)(图2)

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

72. [LayaAir3]右键up删除不了监听 [ 56%]

...收事件的;需要再添加下面代码所示的右键Up监听: this.owner.on(Laya.Event.RIGHT_MOUSE_UP, this, this.onRightMouseUp); 2025-02-21 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 仓颉 相关问题 TextInput重写onFocu...

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

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

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

74. 场景管理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 55%]

...= Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Prefab }) private loadingScenePrefab: Laya.Prefab; private loadingScene: Laya.Node; constructor() { super(); } /** * 第一次执行update之前执行,只会执行一次 */ onSt...

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

75. Uncaught 无法实例class PhysicsCollider extends PhysicsTriggerComponent [ 55%]

...s = bt.btCollisionObject_getCollisionFlags(btColObj);         if (this.owner.isStatic) {             if ((flags & PhysicsComponent.COLLISIONFLAGS_KINEMATIC_OBJECT) > 0)                 flags = flags ^ PhysicsComponent.COLLISIONFLAGS_KINEMATIC_OBJECT;             flags ...

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

76. 输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 55%]

... @regClass() export class TextInputControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.TextInput } ) public txtin: Laya.TextInput; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 ...

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

77. LayaAir 2.0.1 切换场景报异常 Cannot read property ‘_physicsUpdateList’ [ 54%]

...erShape=null;         this._simulation=null;         (this.owner).transform.off(/*laya.events.Event.TRANSFORM_CHANGED*/"transformchanged",this,this._onTransformChanged);     } 2019-03-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

78. 抖音小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 54%]

... } = Laya; @regClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake()...

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

79. [LayaAirIDE3]3.3 新版ui 元素处于滚动区域内,localToGlobal坐标转换异常,没有加上滚动值 [ 54%]

...用parent去做转换,把代码下面这样也行: const pos = (this.owner as Laya.Sprite).localToGlobal(new Laya.Point(0, 0)); 2025-08-15 1 1 分享 微博 QZONE 微信 Recovery 赞同来自: ??? 2025-08-12 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题...

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

80. 水平滚动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

...建文本组件 this.text = new Laya.Text(); this.text.pos(300, 260); this.owner.addChild(this.text); // 滚动条皮肤资源 var skins: any[] = []; skins.push("atlas/comp/hscroll.png", "atlas/comp/hscroll$bar.png", "atlas/comp/hscroll$down.png", "atlas/comp/hscroll$up.png"); Laya.loader.load(skins...

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