大约有 74 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0045 秒)
...ebSocketDemo extends Laya.Script { private socket: Laya.Socket; //组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { this.socket = new Laya.Socket(); // 注册事件监听 this.socket.on(Laya.Event.OPEN, this, this.onSocketOpen); this.socket.on(Laya.Event.MESSAGE, this, ...
来源: Laya3.0_文档 发布时间: 20251010
... Inherited from Node.onEnable Defined in laya/display/Node.ts:730 组件被启用后执行,比如节点被添加到舞台后 此方法为虚方法,使用时重写覆盖即可 Returns void once once(type: string, listener: Function): EventDispatcher once(type: string, caller: any, listener: Funct...
来源: Laya3.0_api 发布时间: 20231115
...aptationEnabled: boolean = true Defined in laya/display/Stage.ts:133 是否启用屏幕适配,可以适配后,在某个时候关闭屏幕适配,防止某些操作导致的屏幕意外改变 Optional tag tag: string Inherited from Node.tag Defined in laya/display/Node.ts:62 节点标签 useReti...
来源: Laya3.0_api 发布时间: 20231115
...leLight: boolean = true Defined in laya/d3/core/scene/Scene3D.ts:423 是否启用灯光。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display/Sprite.ts:273 指定鼠标事件检测是优先检测自身,还是优先检测其子对象。鼠标事件...
来源: Laya3.0_api 发布时间: 20231115