大约有 339 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0049 秒)
...eton Defined in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 owner owner: Node Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Compone...
来源: Laya3.0_api 发布时间: 20231102
...eton Defined in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 canScaleShape canScaleShape: boolean = true Inherited from PhysicsTriggerComponent.canScaleShape Defined in laya/d3/physics/PhysicsComponent.ts:206 是否可以缩放Shape。 owner o...
来源: Laya3.0_api 发布时间: 20231115
...png"; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skin).then( ()=>{ this.onColorPickerSkinLoaded(); } ); } private onColorPickerSkinLoaded(e: any = null): void { let color...
来源: Laya3.0_文档 发布时间: 20251010
...eton Defined in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 owner owner: Node Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Compone...
来源: Laya3.0_api 发布时间: 20231115
...utton }) public btn: Laya.Button; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.btn.scale(5, 5); //放大五倍 this.btn.skin = "atlas/comp/button.png"; //皮肤 this.btn.stateNum = 3; //皮肤状态 this.btn.label = "确...
来源: Laya3.0_文档 发布时间: 20251010
...Scene2D场景。如图1-2所示 (图1-2) Scene3D:编辑3D场景的根节点,可以参考《3D场景编辑的基础交互》文档和《3D场景环境设置》文档来详细了解3D场景的操作和使用,如图1-3所示 (图1-3) Scene2D:编辑2D场景的根节点,可以参考《U...
来源: Laya3.0_文档 发布时间: 20251010
... ```typescript /** * 创建后只执行,只会执行一次,此时所有节点和组件以及创建完毕 */ public onAwake():void {} /** * 脚本每次启动后执行,例如被添加到一个激活的对象上或者设置脚本的enabled = true */ public onEnable():void {} /** * 第一次执行u...
来源: Laya2.0_文档 发布时间: 20210715
...触发器。 PhysicsTriggerComponent owner : Node [只读]获取所属Node节点。 Component restitution : Number 获取弹力。 PhysicsComponent rollingFriction : Number 获取滚动摩擦力。 PhysicsComponent simulation : PhysicsSimulation[read-only] 获取模拟器。 PhysicsComponentPubl...
来源: Laya2.0_api 发布时间: 20190513
...eton Defined in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 owner owner: Node Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Compone...
来源: Laya3.0_api 发布时间: 20231115
...eton Defined in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 owner owner: Node Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Compone...
来源: Laya3.0_api 发布时间: 20231115