Prefab Scale Issues

Hello All,

Like many of us, I’m using blender to create models that I want to use within my unity game. My models import correctly, with all geometry and textures properly placed, and rotations properly set.

I import my asset file, create a new empty prefab, drag my completed, properly scaled asset into the prefab, and then instantiate using code as necessary. All of this works fine.

My problem is this:

When trying to discern the size of my models, I lookup the prefabs size… except that the prefab - which is acting like a wrapper - always has a scale relative to itself: 1! What’s more, the Prefab wrapper is wrapping a wrapper! So my prefab ends up looking like this when I expand it:

Prefab -> Box -> Cube

The Box is the wrapper that got imported from Blender. The Cube is the actual Artwork, which was imported and placed inside the “Box” wrapper. The Prefab is the empty prefab I create and then drag the asset into so I can work with it.

What I need is to be able to find out the scale of the Cube that the “Prefab” and “Box” are wrapping.

When I look at the imported artwork, the asset files themselves have a real size: In one instance the “Cube” (which is inside the “Box”, which is inside the “Prefab”) has a size of 1.3242, 1.523, 2.445, another has a size of 2.312, 4.234, 1.435 - just as I set them up in Blender. So Unity is aware of the size of each object, I just can’t find a way to access this information. No matter what I do, I always end up getting the Prefab wrapper size, which is no help :confused:

Realizing my explanation might not be very understandable, please feel free to ask clarifying questions; I’ll do my best to answer them.

Any help would be greatly appreciated.

Hi, welcome to the forum!

Do you mean that you are having trouble getting the scale values from a script?