I am having real problems and am very new to blender/unity. Right now I have a script that resizes and creates variable longer blocks from a basic cube in unity. I won't show the script as that might not be relevant but this is the result when the script is run to give you an idea -
The original prefab is the default unity cube but the script scales it, etc.
I am trying to replace this cube prefab with an altered cube (a cube with the top right and left edges cut off) to create variably-sized platforms such as this -
I am very new to 3D and so started by just created a simple modified cube in blender -
When I drag this cube into unity it shows up well however when I plug it into my script it elongates the cube in the wrong direction, etc. I know the rotation is off, so I tried to fix that first by rotating the object in blender (this did nothing) and then creating an empty Gameobject and rotating the object there as Unity says, but nothing is working.
In addition to rotation I think the scale of the blender cube is much bigger than unity cube. Furthermore I do not know how to add colliders or other components to my blender object if I just import it- seems I have to drag it into an empty first or the options are all grayed out. Mostly I think I just don't know how to properly import from blender to unity despite tutorials.
This is what happens when I run my script as opposed to original picture -
Clearly a lot is going wrong here. I just want to replicate the default unity cube in blender and modify it so when I bring it back to unity I can use it in my script. How can I do this? What am I doing wrong?