My game Object is bigger when runninng the game than in edit view
My GameObject called bot is seemingly getting larger when i run the game, the hitbox stays the same size though.
(i offset the hitbox so ingame the hitbox fits the in with game view)
I have alligned my editor view with the game view, so it can't be that. Im really lost on this one.
If it helps, the assets are from this Unity tutorial.
As i was writing this, i thought about disabling animation on the object, and the bot remained the same size. However even with knowing this i cannot fix the problem.
Thats because regardless of the size of the game object while editing, the animation for it always gets proportionally bigger when running the game.
I have no idea how to change this and would appreciate any help.
Answer by DaCat1337 · Feb 20, 2020 at 05:23 PM
I have fixed this by changing the pivot point of the sprite of my gameobject from center to bottom.
I dont really know why it works, but now both in the editor and when the animation is running, its in the same place.
Your answer
Follow this Question
Related Questions
My sprite size changes between animations? 4 Answers
2D Slide Animation 0 Answers
How to use humanoid animations for 2d characters? 0 Answers
Elevator Animation Script C# 1 Answer
flip view,half window display 0 Answers