Hello, when I make a build of my game my sprites get shifted out of place and I was wondering how to prevent this from happening.

174853-screen-shot-2021-01-25-at-42925-pm.png

This is my Game in Editor when running.

This is my game running in build.

Could You add more information of your issue?

What we are looking on those pics? are those a 2D objects? is that a Canvas view? it could be different problems depending on that.

I assuming that the grays squares are in the Canvas, if so, you can search for “canvas render mode” and see what option is better to your case due to the canvas can resize depending on that options

https://docs.unity3d.com/Packages/com.unity.ugui@1.0/manual/class-Canvas.html

@marck_ozz Yeah to clarify I believe that either my 2d objects are moving or the canvas is resizing in the build. With in the editor my game is working just fine (in the first screenshot) so I believe there is a problem with the build itself. I have tired the solution you have given me and it’s didn’t work. I hope this give you the information that you need in order to help me.