1
$\begingroup$

I recently got started with Blender and Unity , and although I know this isn't a 'Unity Stack Exchange', I'm relatively new to all this stuff, and I'm extremely new to art and assets.

Basically, I have two questions:

  1. When I tried to make a bigger plane/floor, I started by duplicating the small plane to make two small planes, duplicating those two to four etc. until eventually I had a big sized plane made up of loads of small planes. So when I export them to Unity, I just have massive amounts of planes without the texture I wanted them to have. So I was wondering if there was an easier way to put a texture on loads of different planes.

And

  1. To just skip this whole mundane and long process, is there a way to get a texture and duplicate loads next to each other without the hassle of right clicking every plane then doing shift+d and moving them next to each other and repeat.

I'm also using c++, so if there's a code that you guys know that will fix one or both of these issues, I'd be grateful. Thanks.

$\endgroup$
1
  • $\begingroup$ I don't know anything about unity; but you can duplicate multiple objects while keeping their textures and materials intact by using the array modifier. Alternatively, you can select all the non-textured plains, then select the textured plain at last and press Ctrl+P and select 'material'. This will copy all the materials and textures of the last object selected to the other selected objects. $\endgroup$
    – AshKB
    Commented Aug 13, 2018 at 1:14

1 Answer 1

1
$\begingroup$

You have several options depending on the result you want, you can scale one plane to any size you want, then either the texture scales up with it, or you setup the texture to repeat over the plane.

You can use two array modifiers to duplicate one piece of mesh in two directions. This will duplicate the same piece repeatedly. Then you can apply the modifiers to turn them into a real mesh object, which is an option during export if you only want it that way in unity.

If you want each piece as a separate item in unity, then apply the array modifers, then in edit mode use P->By Loose Parts to break them into multiple objects and ⎈ Ctrl⎇ Alt⇧ ShiftC->Origin to Geometry to put the object centres in the right place.

If you have created multiple planes, select them all A and press ⎈ CtrlL->Material to set them to use the same material.

To automate tasks in blender, we can use python v3 which is also used to create addons. The API reference is here as well as an introduction in the manual. You can also find plenty of scripts around this site for examples.

And if you need help with unity, they have their own site

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .