大约有 1,304 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0071 秒)
Laya_社区(1036) Laya2.0_文档(100) Laya3.0_文档(97) Laya3.0_api(66) Laya2.0_api(2) laya_api(2) Laya_示例(1)
... in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 collideConnected collideConnected: boolean = false Defined in laya/physics/joint/MotorJoint.ts:16 [首次设置有效]两个刚体是否可以发生碰撞,默认为false otherBody otherBody: R...
来源: Laya3.0_api 发布时间: 20231115
... in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 collideConnected collideConnected: boolean = false Defined in laya/physics/joint/DistanceJoint.ts:20 [首次设置有效]两个刚体是否可以发生碰撞,默认为false otherAnchor otherAn...
来源: Laya3.0_api 发布时间: 20231115
...即可 Script onEnable():void 组件被启用后执行,比如节点被添加到舞台后 此方法为虚方法,使用时重写覆盖即可 Script onKeyDown(e:Event):void 键盘按下时执行 此方法为虚方法,使用时重写覆盖即可 Script onKeyPress(e:Event):void 键盘产...
来源: Laya2.0_api 发布时间: 20190513
... in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 anchor anchor: any[] = [0, 0] Defined in laya/physics/joint/RevoluteJoint.ts:18 [首次设置有效]关节的链接点,是相对于自身刚体的左上角位置偏移 collideConnected collide...
来源: Laya3.0_api 发布时间: 20231115
... in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 fixture fixture: any Inherited from ColliderBase.fixture Defined in laya/physics/ColliderBase.ts:25 [只读]b2Fixture对象 label label: string Inherited from ColliderBase.label Defined in laya/...
来源: Laya3.0_api 发布时间: 20231115
...个立方体。在Scene2D的属性面板中,新建一个组件脚本,添加装饰器暴露cube的属性,代码如下: @property({ type: Laya.Sprite3D }) public cube: Laya.Sprite3D; 然后在IDE中,将Cube节点拖入装饰器暴露的属性入口,即可用代码控制Cube节点了。 1. ...
来源: Laya3.0_文档 发布时间: 20251010
..."Export/LayaScene_JJF/Conventional/JJF.lh"); //猴子精灵添加组件(脚本) monkey.addComponent(MonkeyScript); scene.addChild(monkey); //设置相机的观察目标为小猴子 camera.transform.lookAt(monkey.tran...
来源: Laya_社区 发布时间: 20190531
...rite 节点、Image 节点等。 只有继承自 Node 的对象,才具备添加子节点的能力。 1.5 显示对象、容器对象 在节点体系中,具备可视内容(如图片、文字、动画、模型等)的节点被称为显示对象。而有些节点本身不参与渲染,仅用于...
来源: Laya3.0_文档 发布时间: 20251010
... in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 fixture fixture: any Inherited from ColliderBase.fixture Defined in laya/physics/ColliderBase.ts:25 [只读]b2Fixture对象 label label: string Inherited from ColliderBase.label Defined in laya/...
来源: Laya3.0_api 发布时间: 20231115
... in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 color color: Color Defined in laya/d3/core/light/Light.ts:61 灯光颜色。 owner owner: Node Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。...
来源: Laya3.0_api 发布时间: 20231115