I am working on a script where I generate a different mesh every time, and I want to add a plane with the same width as the generated mesh. So max and min X value are the same for the plane.
How do I retrieve these values from a generated mesh. ( it is a different mesh each time, so i can not hard-code it ).
Thanks in advance.