I’m working on a large project that will have many different game objects that need to be imported quickly with accurate collisions. I’m trying to script something that will give me the bounds of the object to create a box collider, but I don’t have mesh or renderer components in the object. How could I find the edges of my objects through a script?
If they don’t have renderers or meshes how are we meant to help understand what the size of your objects are?
If they’re just transforms then just use bounds.Encapsulate to build up a bounds you can use for your box collider. I have a script which may help you: Vertx.Editors - MenuItems.cs that resizes a box collider to the renders in child objects.