- Home /
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
Answer by Meltdown · Mar 14, 2012 at 08:18 PM
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.
Your answer
Follow this Question
Related Questions
MMD How to export model and animations to Unity as 3rd person controller? 2 Answers
Screen resolution problem 0 Answers
Blender meshes,does size matter? 1 Answer
Learning Blender -> Unity workflow, creating a simple vehicle. 2 Answers
ANIMATION PROBLEM! 0 Answers