I am working on a UI feature to show selected object images in a grid layout towards the bottom of the screen.
I have a canvas set to Screen Space - Overlay. This game object also includes a Canvas Scaler set to Scale with Screen Size and a reference resolution.
As a subset of this canvas, I have a Rect Transform with a Grid Layout Group and Content Size Fitter. During the game, I want to add one or more images to fit inside this grid layout.
This currently works great if the game is maximized at fill resolution, but if not, the images I add are larger than the cells they are supposed to fit into. Any suggestions would be appreciated please.