I’m making a procedurally generated 2D level for my game and I was wondering is it possible to have multiple mesh colliders on a game object. I’m trying to have areas in my level where there is water that the player can swim in so I need to set the collider to allow the player to pass through the actual water tiles. I have looked all over and there are no answers that come close to what I am looking for.
You can have more than 1 collider on the same object but not of the same type. E.g. 2 mesh colliders.
My suggestion would be to NOT use a mesh collider. Use a box collider instead as its much better for performance. Also, as you said create a number of childobjects referencing the same material and mesh to create your water area.
select all the child objects with mesh and then assign a mesh collider. It will assign the respective mesh colliders to each one of them.,Select all the child objects and and assign a mesh collider. It wil assign the respective mesh colliders to all of them