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

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

1. laya.d3.component.Script3D [ 100%]

...行一次 此方法为虚方法,使用时重写覆盖即可 Script3D  onTriggerEnter(other:PhysicsComponent):void 开始触发时执行 此方法为虚方法,使用时重写覆盖即可 Script3D  onTriggerExit(other:PhysicsComponent):void 结束触发时执行 此方法为虚方法,使用...

来源: Laya2.0_api 发布时间: 20190513

2. 组件脚本的内置方法 · LayaAir3.3 · 引擎文档 · LAYABOX [ 97%]

...旋转 (this.owner as Laya.Sprite).rotation++; } //开始碰撞时执行 onTriggerEnter(other: any): void { var owner: Laya.Sprite = this.owner as Laya.Sprite; if (other.label === "buttle") { //碰撞到子弹后,增加积分,播放声音特效 if (this._level > 1) { this._level--; this._text...

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

3. 脚本的事件(JavaScript-3D基础(JS)-LayaAir3D的脚本使用) [ 97%]

...执行,会执行一次 */ onStart() {} /** * 开始触发时执行 */ onTriggerEnter(other) {} /** * 持续触发时执行 */ onTriggerStay(other) {} /** * 结束触发时执行 */ onTriggerExit(other) {} /** * 开始碰撞时执行 */ onCollisionEnter(collision) {} /** * 持续碰撞时执行 ...

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

4. laya.components.Script [ 95%]

...执行一次 此方法为虚方法,使用时重写覆盖即可 Script  onTriggerEnter(other:*, self:*, contact:*):void 开始碰撞时执行 此方法为虚方法,使用时重写覆盖即可 Script  onTriggerExit(other:*, self:*, contact:*):void 结束碰撞时执行 此方法为虚方法,...

来源: Laya2.0_api 发布时间: 20190513

5. 脚本的事件(TypeScript-3D基础(TS)-LayaAir3D的脚本使用) [ 93%]

...一次 */ public onStart():void {} /** * 开始触发时执行 */ public onTriggerEnter(other:Laya.PhysicsComponent):void {} /** * 持续触发时执行 */ public onTriggerStay(other:Laya.PhysicsComponent):void {} /** * 结束触发时执行 */ public onTriggerExit(other:Laya.PhysicsComponent):void ...

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

6. 实体组件系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 93%]

...s.owner.getComponent(Laya.RigidBody); rig.setVelocity({ x: 0, y: -10 }); } onTriggerEnter(other: any, self: any, contact: any): void { //如果被碰到,则移除子弹 this.owner.removeSelf(); } onUpdate(): void { //如果子弹超出屏幕,则移除子弹 if ((this.owner as Laya.Sprite).y <...

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

7. 脚本的事件(ActionScript-3D基础(AS3)-LayaAir3D的脚本使用) [ 91%]

... onStart():void {} /** * 开始触发时执行 */ public override function onTriggerEnter(other:PhysicsComponent):void {} /** * 持续触发时执行 */ public override function onTriggerStay(other:PhysicsComponent):void {} /** * 结束触发时执行 */ public override function onTriggerExit(other:...

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

8. TimeLine的bug [ 89%]

...景不显示 微信6.7.2版本3D显示BUG 关于2D物理碰撞无法触发OnTriggerEnter、OnTriggerStay、OnTriggerExit的bug 问题状态 最新活动: 2017-01-13 11:49 浏览: 1414 关注: 2 人

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

9. laya.components.Script_API3.0 [ 86%]

...p onPostRender onPreRender onReset onRightMouseDown onRightMouseUp onStart onTriggerEnter onTriggerExit onTriggerStay onUpdate Constructors constructor new Script(): Script Inherited from Component.constructor Defined in laya/components/Component.ts:44 创建一个新的 Component 实例。 Returns ...

来源: Laya3.0_api 发布时间: 20231115

10. 奇葩遮罩BUG [ 80%]

....7.20beta有bug,帧属性面板打不开 关于2D物理碰撞无法触发OnTriggerEnter、OnTriggerStay、OnTriggerExit的bug 遮罩导致在ios浏览器上运行黑屏 2.5引擎版本webgl使用遮罩动态变换位置和缩放时,会有线条,并未遮罩完整 问题状态 最新活动: 201...

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