x


Model losing scale at runtime

I have a model exported in Blender to FBX, and the file imports fine and the texture works great, but it was much too small. I decided I would rather scale the object to be larger in Unity rather than re-exporting it from Blender. However, now when I run the game, my model shrinks back to a scale of 1 on each axis immediately. How can I stop this (and why is it happening)?

(Note: I don't mind fixing this in Blender, I just want to know what is causing the issue in Unity)

EDIT: After scaling the model up in Blender and attaching the camera to aforementioned model, I tried putting the model in a empty parent object. In an effort to get the camera where I wanted, I tried translating the model down by 2 units, and when I ran the game, the translation was removed (moved back to <0,0,0> local coordinates) and when I stopped running the game, the -2 unit translation returned. This is wildly irritating. Please explain this to me. XD

more ▼

asked Mar 14 '12 at 05:11 PM

Syynth gravatar image

Syynth
1 1 2

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Don't attach your camera to your model. Rather assign the SmoothFollow script to the camera, and set your model as it's target.

You also need to make sure in Blender that you don't have any transforms on your model. i.e make sure it's at its origin in the scene, I know Maya has a freeze transforms option, not sure what the same is in Blender, but it seems like a transform might be coming from Blender which is causing the problem.

more ▼

answered Mar 14 '12 at 08:18 PM

Meltdown gravatar image

Meltdown
5.6k 18 25 49

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x750
x584
x401
x7

asked: Mar 14 '12 at 05:11 PM

Seen: 475 times

Last Updated: Mar 14 '12 at 08:18 PM