Texturing Level Geometry

Hello, I’ve been searching for an answer to this for a long time so I gave up on searching and decided to write a topic about it.

Does everything have to be a 3D model in Unity? I mean if I want to create a simple room or a platform for example, I can make it with level geometry, but the problem is the textures. When I assign a texture to a cube for example I have tiling and offset options for the texture, but these options are not only for that cube, these options are global for the texture and for example if I create another cube and assign the same texture to it, the texture would have the same scale and offset as the other cube. The other thing is that if I stretch the cube with the scale tool, the texture will stretch with it.

Is there a manual or something in the reference about texturing level geometry? I really couldn’t find such information.

Create a new material and drag it onto a different object. If you assign the same material to different objects, they’ll of course both be using the same material settings.

While you can use the built in geometry to make your level, Unity isn’t really meant for that method of doing it. There’s nothing stopping you, and it’s often useful to have a premade cube with UV’s if you need to test something quickly or throw together something quick and simple. But to build up a level properly, you really want to be using geometry imported from 3D packages.

Yes, I know about that and thanks for the answer. I want to use this method to create a base to be build on.

What you could do, and it’s something I was thinking about the past couple of days. Would be to build a very basic layout using the geometry in Unity. Not worrying about texturing or anything, mostly focusing only on positioning of objects, walkways etc. getting distances right for jumps and so on. Then using the export to obj script from the unity wiki, exporting all of that as a single object, and then to use that in a background layer of a modeling app to build around with proper textured geometry that would be easier to match up. Think of the simple geometry as more or less just a visual representation of collision boxes or something? I dunno, didn’t really give that method much thought beyond the basic idea, and haven’t yet given it a try.

Yeah, that’s a good idea, I was thinking of something like this too. Would it be possible to export the level geometry from Unity to a 3D model? That way it could be even easier, because I’ll only have to modify existing geometry in the 3D app

Using the Export to Obj script I mentioned then yeah. But it wouldn’t result in the most optimized level without quite a bit of clean up work removing unwanted faces, recreating UV’s and so on.