Search Unity

Question Grid Layout Group Changing Size Between Scenes and Builds...?

Discussion in 'Immediate Mode GUI (IMGUI)' started by DrewJThomas, Apr 22, 2023.

  1. DrewJThomas

    DrewJThomas

    Joined:
    Feb 26, 2022
    Posts:
    92
    Edit and Tl;DR: It works between scenes, but not in builds. Basically, the spacing in my Grid Layout Groups increases when the game is built.

    What's up with this? The spacing and size of the grid items changes when I build the project and play it on WebGL.

    So this:
    Screenshot (124).png

    Will turn into this:
    Screenshot (127).png
    When it's in the build. Why does it look different?

    These are my Grid Layout Group Settings:
    Screenshot (126).png

    This has been annoying me for a while, what's wrong with this component?
    Also, it looks fine with every resolution in the Unity Editor, so I doubt resolution is the issue.
    Thank you

    EDIT: I pressed play and now it randomly looks like this...
    Screenshot (128).png
     

    Attached Files:

    Last edited: Apr 22, 2023