大约有 447 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0077 秒)
Laya3.0_api(152) Laya_社区(125) Laya2.0_api(67) laya_api(55) Laya2.0_文档(28) Laya3.0_文档(19) Laya2.0_示例(1)
... in laya/events/EventDispatcher.ts:146 移除caller为target的所有事件监听 Parameters caller: any caller对象 Returns EventDispatcher on on(type: string, listener: Function): EventDispatcher on(type: string, caller: any, listener: Function, args?: any[]): EventDispatcher Inherited from Event...
来源: Laya3.0_api 发布时间: 20231115
... in laya/events/EventDispatcher.ts:146 移除caller为target的所有事件监听 Parameters caller: any caller对象 Returns EventDispatcher on on(type: string, listener: Function): EventDispatcher on(type: string, caller: any, listener: Function, args?: any[]): EventDispatcher Inherited from Event...
来源: Laya3.0_api 发布时间: 20231115
...添加与控制的,在stage范围内,可以控制显示、进行事件监听,碰撞检测等,所以对stage宽高的适配还是非常重要的。 在DevTools控制台,我们可以通过引擎API(Laya.stage.width和Laya.stage.height),查看舞台宽高。 2、LayaAir屏幕适配模式详...
来源: Laya3.0_文档 发布时间: 20251010
...大的Spine资源放到预加载的队列中,提前进行加载。 或者监听Laya.Event.READY事件,再进行逻辑处理。 示例代码如下: const { regClass, property } = Laya; @regClass() export class Demo extends Laya.Script { spine3D: Laya.Spine3DRenderer; onAwake(): void { // 加载...
来源: Laya3.0_文档 发布时间: 20260203
...ero.pos(200,500); // 放置到舞台上 Laya.stage.addChild(this.hero); // 监听舞台的鼠标移动事件 Laya.stage.on(Laya.Event.MOUSE_MOVE,this,onMouseMove); // 手动创建敌人 // createEnemy(10); // 定时器自动循环创建敌人 Laya.timer.frameLoop(1,this,onLoop); } function onLoop() ...
来源: Laya_社区 发布时间: 20170525
... in laya/events/EventDispatcher.ts:146 移除caller为target的所有事件监听 Parameters caller: any caller对象 Returns EventDispatcher oldparseEndEvent oldparseEndEvent(): void Inherited from Material.oldparseEndEvent Defined in laya/d3/core/material/Material.ts:850 Returns void on on(type: s...
来源: Laya3.0_api 发布时间: 20231102
... in laya/events/EventDispatcher.ts:146 移除caller为target的所有事件监听 Parameters caller: any caller对象 Returns EventDispatcher on on(type: string, listener: Function): EventDispatcher on(type: string, caller: any, listener: Function, args?: any[]): EventDispatcher Inherited from Event...
来源: Laya3.0_api 发布时间: 20231102
... in laya/events/EventDispatcher.ts:146 移除caller为target的所有事件监听 Parameters caller: any caller对象 Returns EventDispatcher on on(type: string, listener: Function): EventDispatcher on(type: string, caller: any, listener: Function, args?: any[]): EventDispatcher Inherited from Event...
来源: Laya3.0_api 发布时间: 20231115
...做碰撞组/层过滤;减少触发器覆盖;避免无意义的 Stay 监听 数量下降且玩法不受影响 C_Physica*/C_PhysicsJoint 数量过大或不回落 物理对象未销毁/未移除 检查生命周期;场景切换释放;避免重复创建 切场景后数量回落到稳定值 9.1 P...
来源: Laya3.0_文档 发布时间: 20260128
... in laya/events/EventDispatcher.ts:146 移除caller为target的所有事件监听 Parameters caller: any caller对象 Returns EventDispatcher on on(type: string, listener: Function): EventDispatcher on(type: string, caller: any, listener: Function, args?: any[]): EventDispatcher Inherited from Event...
来源: Laya3.0_api 发布时间: 20231102