大约有 195 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)
...mponent.ts:275 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 Returns void onDestroy onDestroy(): void Inherited from Component.onDestroy Defined in laya/components/Component.ts:318 手动调用节点销毁时执行 Returns void onDisable onDisabl...
来源: Laya3.0_api 发布时间: 20231115
...个类的职责清晰和单一,就会避免耦合性。 通过LayaAirIDE创建的2D示例项目(打方块游戏)。也是组件化开发设计思想的一个示例,充分考虑了解藕和单一职责。比如,子弹的脚本,只负责自己的移除,回收,完全不需要去考虑...
来源: Laya2.0_文档 发布时间: 20210715
...始播放时,其他动效会自动停止播放。 可以通过LayaAir IDE创建。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Node activeInHierarchy : Boolean[read-only] 获取在场景中...
来源: Laya2.0_api 发布时间: 20190513
...nonPhysicsComponent Class CannonPhysicsComponent PhysicsComponent 类用于创建物理组件的父类。 Hierarchy Component CannonPhysicsComponent CannonPhysicsTriggerComponent Index Constructors constructor Properties _extra _singleton canScaleShape owner runInEditor scriptPath Accessors awaked c...
来源: Laya3.0_api 发布时间: 20231102
...ublic class Script3DInheritanceScript3D Component Object Script3D 类用于创建脚本的父类,该类为抽象类,不允许实例。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By destroyed : Boolean[read-only] 获取是否已经销毁 。 ...
来源: Laya2.0_api 发布时间: 20190513
...mponent.ts:275 组件被激活后执行,此时所有节点和组件均已创建完毕,次方法只执行一次 Returns void onDestroy onDestroy(): void Inherited from Component.onDestroy Defined in laya/components/Component.ts:318 手动调用节点销毁时执行 Returns void onDisable onDisabl...
来源: Laya3.0_api 发布时间: 20231115
...onent Class CannonPhysicsTriggerComponent PhysicsTriggerComponent 类用于创建物理触发器组件。 Hierarchy CannonPhysicsComponent CannonPhysicsTriggerComponent CannonPhysicsCollider Index Constructors constructor Properties _extra _singleton canScaleShape owner runInEditor scriptPath Access...
来源: Laya3.0_api 发布时间: 20231102
...CannonPhysicsCollider Class CannonPhysicsCollider PhysicsCollider 类用于创建物理碰撞器。 Hierarchy CannonPhysicsTriggerComponent CannonPhysicsCollider CannonRigidbody3D Index Constructors constructor Properties _extra _singleton canScaleShape owner runInEditor scriptPath Accessors awaked ...
来源: Laya3.0_api 发布时间: 20231102
...rrides BaseTexture.constructor Defined in laya/resource/VideoTexture.ts:28 创建VideoTexture对象, Returns VideoTexture Properties destoryedImmediately destoryedImmediately: boolean Inherited from Resource.destoryedImmediately Defined in laya/resource/Resource.ts:104 是否在引用计数为0的...
来源: Laya3.0_api 发布时间: 20231102
...ited from Component.constructor Defined in laya/components/Component.ts:44 创建一个新的 Component 实例。 Returns RigidBody Properties Optional _extra _extra: IComponentExtra Inherited from Component._extra Defined in laya/components/Component.ts:36 Optional _singleton _singleton: boolean = ...
来源: Laya3.0_api 发布时间: 20231115