• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,295 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0059 秒)

1221. laya.d3.physicscannon.CannonPhysicsTriggerComponent_API3.0 [ 33%]

... in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 canScaleShape canScaleShape: boolean = true Inherited from CannonPhysicsTriggerComponent.canScaleShape Defined in laya/d3/physicsCannon/CannonPhysicsComponent.ts:191 是否可以缩放Shape。 o...

来源: Laya3.0_api 发布时间: 20231102

1222. WebSocket通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 33%]

...{ 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, this.onMessageReceived); this.soc...

来源: Laya3.0_文档 发布时间: 20251010

1223. laya.d3.physicscannon.CannonPhysicsCollider_API3.0 [ 32%]

... in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 canScaleShape canScaleShape: boolean = true Inherited from CannonPhysicsTriggerComponent.canScaleShape Defined in laya/d3/physicsCannon/CannonPhysicsComponent.ts:191 是否可以缩放Shape。 o...

来源: Laya3.0_api 发布时间: 20231102

1224. laya.physics.joint.MotorJoint_API3.0 [ 32%]

... 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

1225. laya.physics.joint.DistanceJoint_API3.0 [ 32%]

... 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

1226. laya.components.Script [ 32%]

...即可 Script  onEnable():void 组件被启用后执行,比如节点被添加到舞台后 此方法为虚方法,使用时重写覆盖即可 Script  onKeyDown(e:Event):void 键盘按下时执行 此方法为虚方法,使用时重写覆盖即可 Script  onKeyPress(e:Event):void 键盘产...

来源: Laya2.0_api 发布时间: 20190513

1227. laya.physics.joint.RevoluteJoint_API3.0 [ 32%]

... 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

1228. laya.physics.CircleCollider_API3.0 [ 32%]

... 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

1229. 3D变换 · LayaAir3.3 · 引擎文档 · LAYABOX [ 31%]

...个立方体。在Scene2D的属性面板中,新建一个组件脚本添加装饰器暴露cube的属性,代码如下: @property({ type: Laya.Sprite3D }) public cube: Laya.Sprite3D; 然后在IDE中,将Cube节点拖入装饰器暴露的属性入口,即可用代码控制Cube节点了。 1. ...

来源: Laya3.0_文档 发布时间: 20251010

1230. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 31%]

..."Export/LayaScene_JJF/Conventional/JJF.lh");         //猴子精灵添加组件(脚本)         monkey.addComponent(MonkeyScript);         scene.addChild(monkey);         //设置相机的观察目标为小猴子         camera.transform.lookAt(monkey.tran...

来源: Laya_社区 发布时间: 20190531