unity-mcp/UnityMcpBridge/Editor
Shutong Wu 558b051323
Merge pull request #131 from Sunjnn/master
Add support for creating physics material assets. Works on Unity 2022 onwards and Unity 6, since they use different naming for PhysicsMaterial(PhysicMaterial before Unity 6, and PhysicsMaterial after). 
Add naming examples on the server side

TODO: currently unity-mcp only support adding gameobject and specifying adding a physic material, and manage_gameobject.cs does not handle a detailed request such as the copied request well. Will be the future work.

Example:
{
  `name`: `BouncyCube`,
  `action`: `create`,
  `position`: [
    6,
    2,
    0
  ],
  `primitive_type`: `Cube`,
  `components_to_add`: [
    `Rigidbody`
  ],
  `component_properties`: {
    `Rigidbody`: {
      `mass`: 1,
      `useGravity`: true
    },
    `BoxCollider`: {
      `material`: `Assets/Physics Materials/SuperBouncePhysicsMaterial.physicmaterial`
    }
  }
}
2025-07-13 14:45:13 -04:00
..
Data restructured project 2025-04-08 06:14:13 -04:00
Helpers added public helper methods for project versions 2025-04-09 07:42:43 -04:00
Models restructured project 2025-04-08 06:14:13 -04:00
Tools Merge pull request #131 from Sunjnn/master 2025-07-13 14:45:13 -04:00
Windows linting and removed unused properties 2025-04-09 09:10:21 -04:00
Data.meta restructured project 2025-04-08 06:14:13 -04:00
Helpers.meta restructured project 2025-04-08 06:14:13 -04:00
Models.meta restructured project 2025-04-08 06:14:13 -04:00
Tools.meta restructured project 2025-04-08 06:14:13 -04:00
UnityMcpBridge.cs updated server install process 2025-04-08 10:33:14 -04:00
UnityMcpBridge.cs.meta restructured project 2025-04-08 06:14:13 -04:00
Windows.meta restructured project 2025-04-08 06:14:13 -04:00