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

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

1. box2d动态创建绑定多个关节报错 Node:the component is singleton,can't add the second one. [ 100%]

box2d动态创建绑定多个关节报错 Node:the component is singleton,can't add the second one. 需求:模拟粘性小球,与任何物体发生碰撞后,在容器内动态创建多个DistanceJoint 与多个不同rigBody做距离关系绑定 代码片段:  onTriggerEnter(other: any, se...

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

2. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 35%]

...改组件属性,场景里的对象会自动同步,无需手动 node.getComponent("MeshRenderer").props.enabled = false; 2、调用节点/组件的一个方法,并返回值。例如: //下面是UI进程代码 //获取选中的节点 let node = Editor.scene.getSelection()[0]; //调用MyScript...

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