Skip to content

Unity PCG Generates a Box-Collider Encapsulating Every Child Mesh, Collider or Transform

License

Notifications You must be signed in to change notification settings

ltmx/Unity-Prefab-Collider-Generator

Repository files navigation

Unity Prefab Collider Generator

Unity PCG Generates a BoxCollider Encapsulating Every Child Mesh, Collider or Transform

Made for Unity


Instructions

  1. Add the Prefab Collider Generator Script onto any gameobject
  2. Change the target GameObject if needed
  3. Select the generation mode : From Meshes / Colliders / Transforms, depending on you needs
  4. Click on Generate Collider

Additional Features

  • Click Clear Duplicate Colliders to remove unnecessary box colliders from the target GameObject
  • Click "Assign Self" to force self assigning (The script normally does it automatically upon enabling)