title: Unity - Help needed with Object Positioning
body: <p>Need some help here with unity object positioning, I've been trying to play around for almost two days and got no result.</p>
  <p>So if you look at the image below there are 2 objects.</p>
  <p><a href="https://i.stack.imgur.com/HlnRy.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HlnRy.jpg" alt="enter image description here" /></a></p>
  <p>One is Plate (red colour)</p>
  <p>One is Cube (blue colour)</p>
  <p>I created the entire objects below from the script.
  When the Plate (Red colour object) was generated the scale is (4 x 0.4 x 4).</p>
  <p>And as for the cube, please look at this image, so there are 5 possible types of cube and each has its own vector size
  <a href="https://i.stack.imgur.com/CjuAp.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CjuAp.jpg" alt="enter image description here" /></a></p>
  <p>What I am trying to achieve is that every Cube (blue colour) has it own pre-defined vector size, and when the script ran, I want to position the cube accordingly in a tidy manner on top of the Plate.</p>
  <p>If you look at the first image, everything is messy right now the cube is outside the plate, etc.
  Anyone know whats the best way to achieve what I wanted?</p>
  <p>The image below is what I want to achieve, everything is tidy and on top of the plates.</p>
  <p><a href="https://i.stack.imgur.com/yPnDD.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yPnDD.jpg" alt="enter image description here" /></a></p>
  <p>Thanks and much appreciated!</p>
  <p>Edit: the number of cubes is not fixed basically we populate the cubes from reading a TXT file and it tells the system the number of cubes per plate and what are the sizes of the cubes, we just need to position it correctly. For example, when reading the TXT file, it can tell the system that the first plate will be having 4 cubes and X amount of size. (so we have 5 different types of size and based on the size then we need to fit it accordingly on a plate)</p>