- Home /
"Lerpz" character's scaling is not respected
Hi, so I'm using the "Lerpz" character (the little robot from the platformer demo) in a new project. He's just a placeholder asset but I'd love to get him working right! Basically he's much too small for the scale of the rest of the world, so I want to scale him up. But it seems buggy.
The obvious thing to do was to change the Lerpz asset's Scale to 100/100/100, making him 100x bigger than default. This looks fine in the editor, he's the right size! But when I hit Play, he mysteriously shrinks back to 1x/1x/1x and is the size of a gnat. When I stop playing, bam, he's back to 100x size. Why does it do this!?
So I put the asset inside a Prefab, and scaled the Prefab instead. This works, but is quite awkward, because in the editor, the prefab shows up as a gigantic (100x too big) robot, while in Play mode he's the right size. So I got him to be the right size in-game, but I would really like to get the actual asset to respect the Scale factor I assign to him. Any ideas?
Thanks!
Answer by eheimburg · Apr 04, 2010 at 09:34 PM
EDIT: it seems to be caused by Lerpz's animations. They have a "Scale Factor" that overrides the transform, I guess (shouldn't it be applied relative to the transform?!). Unfortunately, I can't just change the Scale Factor to an appropriate size, because then Lerpz gets all mutated.
So no answer yet after all...
Actually, I am still stumped by it. It wasn't caused by scripts -- it was caused by having an Animation component on the GameObject that owned the character. When I remove the Animation, ta da, no more scaling. Unfortunately, I don't know why that's a problem...
Step forward, step backward... changing the "Scale Factor" on Lerpz's animations from .01 to 1 made him the right size (when animations are used). However, now his head is all superdeformed and in his torso! Sigh. So the animations have scaling baked into them and this overrides the transform scaling?
Try to change the scaling size in the prefab import from 0.1 to 1 (FBX Importer plugin in the inspector)
Your answer
Follow this Question
Related Questions
Change pixels per unit for an imported asseet, but only on x axis 1 Answer
Can't download Assets 5.4.5p5,Cannot Download Assets 5.4.5p5 0 Answers
Importing custom assets? 0 Answers
Fix assets folder? 0 Answers
Resizing GUI textures 0 Answers