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

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

111. 新人求助:onStart赋值为什么在onUpdate会输出一次为空 [ 66%]

...  }     onStart():void{                this.lab=this.owner as Laya.Label;         }         onUpdate():void{         if(this.lab==null){             console.log("lab为空");             return;         }         t...

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

112. this.scene.physicsSimulation.rayCastAll 报错 [ 65%]

...到的物体 this.text.text = "点击到了" + this.outHitResult.collider.owner.name ; console.log("碰撞到物体!!") }   上述代码运行时候报错,一直无法解决,请求大佬帮忙看一下问题?(.scene.physicsSimulation属性为灰色,不可使用)     报错如下...

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

113. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 65%]

...or3(0,0,0);     }     onStart(){         this.scene = this.owner.parent;         this.text = this.scene.parent.getChildByName("ceshi");         this.camera = this.scene.getChildByName("camera");     }     onUpdate(){         let touchCount = this.scene...

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

114. Laya3.0正式版spine3.8的动画资源不能正常显示 [ 65%]

...this.skeleton = new SpineSkeleton(); this.skeleton.templet = templet; this.owner.addChild(this.skeleton); this.skeleton.pos( this.pageWidth / 2, this.pageHeight / 2 + 100); this.skeleton.scale(0.4, 0.4); this.skeleton.on(Laya.Event.STOPPED, this, this.play); this.play(); }); } private play(): void {...

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

115. 按照范例写的碰撞一直检测不到 this.outHitInfo.distance [ 65%]

...ya.Physics.rayCast(this.ray,this.outHitInfo,5)); //更新角色位置 this.owner.transform.translate(new Laya.Vector3(speedX,0,speedZ),false); //播放行走动画   2018-01-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...

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

116. 发射射线检测不到,物体有包围盒 [ 65%]

...了Scene3d             scene3d.name = 'good';             self.owner.addChild(scene3d);              var lv = scene3d.getChildByName("--- GAMEPLAY ---").getChildByName("Levels Parent");              // Laya.Sprite3D.load("res/prefabs/Conventional/prefabs.lh", Laya.Handler.c...

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

117. [LayaAirIDE3]如何TextArea屏蔽掉右键的快捷菜单 [ 65%]

...his.enableRightClick();         //禁用Ctrl+c,Ctrl+v         this.owner.on("keydown", this, (event: KeyboardEvent) => {             if (event.ctrlKey && event.key === "c") {                 event.preventDefault();             }             if (event.ctrl...

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

118. 关于TS get/set重写问题 [ 64%]

...: 参考下https://ldc.layabox.com/doc/?nav=zh-ts-2-4-2这篇文档中的owner方法 2018-03-05 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 radyslove 相关问题 发起问题须知,必看!!!不按提问规则的,官方拒...

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

119. 取色器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 64%]

...eHandler = new Laya.Handler(this, this.onChangeColor, [colorPicker]); this.owner.addChild(colorPicker); this.onChangeColor(colorPicker); } private onChangeColor(colorPicker: Laya.ColorPicker, e: any = null): void { console.log(colorPicker.selectedColor); } } 运行效果如下动图所示: (动...

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

120. 内置骨骼动画 · LayaAir3.3 · 引擎文档 · LAYABOX [ 64%]

...ture.x = 300; this.mArmature.y = 350; this.mArmature.scale(0.5, 0.5); this.owner.addChild(this.mArmature); //设置动画播放完成后,调用completeHandler继续播放下一个动画 this.mArmature.on(Laya.Event.STOPPED, this, this.completeHandler); this.play(); }); } private completeHandler():...

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