Hi suppose I have an empty game object to which I add two cubes as children, one above the other with a gap in between like so (I have scaled the bottom cube on the y-axis as that is what I will be doing):
How would I then go about adding a 3rd object in script that fills the gap between the top of the bottom cube and the bottom of the top cube (I don’t need the code, just the correct approach to getting the correct position and scale)?
I’m confused because I thought adding an object at position 0,0,0 to the parent would center it. It doesn’t seem to work like that as if I set the position to that it appears below the other objects.
Thanks