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

大约有 10 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0050 秒)

1. Android真机调试JavaScript(TypeScript-LayaNative原生服务-LayaNative基础文档) [ 100%]

...Chrome对项目中JavaScript进行调试。如图2所示: ![](img/debug_connected.png) 图4 ## 三、使用测试App进行调试 ### 步骤1:确认ip地址和端口号 打开测试App, 可以在左上角看到Android设备的ip地址和调试时需要的端口号。 如图1所示,设备的ip...

来源: Laya2.0_文档 发布时间: 20210715

2. WebSocket发送与接收数据(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 86%]

... this.socket.endian = Laya.Byte.LITTLE_ENDIAN; //建立连接 this.socket.connectByUrl("ws://localhost:8989"); this.socket.on(Laya.Event.OPEN, this, openHandler); this.socket.on(Laya.Event.MESSAGE, this, receiveHandler); this.socket.on(Laya.Event.CLOSE, this, closeHandler); this.socket.on(Laya.Event...

来源: Laya2.0_文档 发布时间: 20210714

3. WebSocket发送与接收数据(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 84%]

... this.socket.endian = Laya.Byte.LITTLE_ENDIAN; //建立连接 this.socket.connectByUrl("ws://localhost:8989"); this.socket.on(Laya.Event.OPEN, this, this.openHandler); this.socket.on(Laya.Event.MESSAGE, this, this.receiveHandler); this.socket.on(Laya.Event.CLOSE, this, this.closeHandler); this.socke...

来源: Laya2.0_文档 发布时间: 20210714

4. WebSocket发送与接收数据(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 84%]

...cket.endian = Byte.LITTLE_ENDIAN;//这里我们采用小端; this.socket.connectByUrl("ws://localhost:8989");//建立连接; this.socket.on(Event.OPEN,this,openHandler); this.socket.on(Event.MESSAGE,this,receiveHandler); this.socket.on(Event.CLOSE,this,closeHandler); this.socket.on(Event.ERROR,t...

来源: Laya2.0_文档 发布时间: 20210715

5. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 77%]

... the buffer in the AudioBufferSourceNode source.buffer = myArrayBuffer; // connect the AudioBufferSourceNode to the // destination so we can hear the sound source.connect(audioCtx.destination); // start the source playing source.start(); } ``` ​ 运行上面的js代码,单击页面就会听到...

来源: Laya2.0_文档 发布时间: 20210715

6. 物理系统之FixedConstraint(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 62%]

...anchor = new Vector3(0,0,0); //设置约束的连接锚点 fixedConstraint.connectAnchor = new Vector3(0,2,0); box.addComponent(FixedEventTest); //使用约束连接两个刚体 fixedConstraint.setConnectRigidBody(rigidBody,rigidBody2); ``` - 3.设置约束的breakForce ```typescript onStart() { thi...

来源: Laya2.0_文档 发布时间: 20210715

7. 物理系统之FixedConstraint(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 62%]

...anchor = new Vector3(0,0,0); //设置约束的连接锚点 fixedConstraint.connectAnchor = new Vector3(0,2,0); box.addComponent(FixedEventTest); //使用约束连接两个刚体 fixedConstraint.setConnectRigidBody(rigidBody,rigidBody2); ``` - 3.设置约束的breakForce ```typescript onStart() { thi...

来源: Laya2.0_文档 发布时间: 20210715

8. 物理系统之FixedConstraint(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 61%]

...anchor = new Vector3(0,0,0); //设置约束的连接锚点 fixedConstraint.connectAnchor = new Vector3(0,2,0); box.addComponent(FixedEventTest); //使用约束连接两个刚体 fixedConstraint.setConnectRigidBody(rigidBody,rigidBody2); ``` - 3.设置约束的breakForce ```typescript override public...

来源: Laya2.0_文档 发布时间: 20210714

9. 一篇上手LayaAir的3D物理引擎(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 48%]

...。 LayaAir引擎支持Unity中固定关节`Fixed Joint`的三个属性(Connected Body、Break Force、Break Torque)是支持导出使用的。如下图12所示。 ![img](img/12.png) (图12) ##### 3.2.1 设置连接刚体 setConnectRigidBody Unity中的`Connected Body`对应LayaAir的设置...

来源: Laya2.0_文档 发布时间: 20210715

10. Unity插件使用说明(TypeScript-3D基础(TS)-LayaAir3D之3D场景可视化编辑) [ 33%]

...的说明 | | ---------------------------- | ------------------------- | | Connected Body(连接的刚体) | 支持 | | Break Force(断开力) | 支持 | | Break Torque(断开扭矩) | 支持 | ##### 4.9.7 可配置关节组件Configurable Joint ![img](img/4.9-7.png) 在上图中的Unity...

来源: Laya2.0_文档 发布时间: 20210714