Fantacode Studios — Making the Demo Better… Maybe?
Alright, so where we left off, I had buttons showing up, but minor problem, if I set things up so that the buttons don’t fit in the…
Fantacode Studios — Making the Demo Better… Maybe?
Alright, so where we left off, I had buttons showing up, but minor problem, if I set things up so that the buttons don’t fit in the existing area (for example if I set the grid items to be 1200 wide, then the latter buttons spill off of the screen.

Clearly not good. We need to set up a scroll bar. Which… honestly, every time I run into a situation with a scroll bar, I feel like I have to learn how to do it again. Looking back on my notes, I found that ScrollRect handles a lot of the details for us.
So, if I make the panel with the buttons larger, and stick it inside a ScrollRect’s Content section, then we probably ought to be fine, right?

Hmm… the grid layout isn’t working the way I expect it to. What if I use a Content Size Fitter to increase its size to fit the contents?


Hmm… more Horizontal expansion than I’d like. Fiddling around with the Content Size Fitter has come up with a few different results.


Unfortunately, I can’t seem to get the right combination of fit and scroll bar… I know I have to be missing something here, but I can’t quite figure out what. The frustrating thing is, I solved this problem before, but for some reason, the same solution is not working here.
메타데이터
- post_id
- a967e8fa5510
- slug
- fantacode-studios-making-the-demo-better-maybe-a967e8fa5510
- url
- https://medium.com/@sean.duggan/fantacode-studios-making-the-demo-better-maybe-a967e8fa5510
- canonical_url
- https://medium.com/@sean.duggan/fantacode-studios-making-the-demo-better-maybe-a967e8fa5510
- author_url
- https://medium.com/@sean.duggan
- status
- ok
- fetched_at
- 2026-08-11 04:34:46