4
votes

Using Unity 4.6.0 . I've imported some sprites to my project . I attached an image of one of these sprites (It's only a prefab with SpriteRenderer Component attached to it)

enter image description here

But sometimes Unity reshapes the sprite automatically

enter image description here

And if I change some settings of these sprites like Max Size or Format, then the sprites will be rendered correctly but after a while it will be reshaped again! I don't have any idea about this problem.

1
Do you receive any console messages when this happens? - MX D
When I stop the game, sometimes a console message appears: !CompareApproximately (det, 1.0F, .005f) UnityEditor.SceneView:Awake() UnityEditorInternal.InternalEditorUtility:LoadSerializedFileAndForget(String) UnityEditor.EditorApplicationLayout:SetStopmodeLayout() - rajabzz

1 Answers

0
votes

This can happen when you parent your sprite to an object that has a scale other than (1, 1, 1). If any object higher up in the hierarchy is scaled it will affect all children including your sprite.

You can either counter the scaling or use Transform.SetParent to do it for you.