← Back to list

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…

Sean Duggan · 2026-08-07 16:22 · 0 claps · 2.0 min read
#unity #fantacode-studios #unity-ui #scrollview
Open on Medium ↗
Wiki topics: GEN · Genomics & Sequencing 🎮 · Gaming

Fantacode Studios — Making the Demo Better… Maybe?

[embed]Fantacode Studios — Making a Demo Recently, on the Fantacode Studios Discord, someone asked about a Windows/Android demo for the FS Shooter System. I…medium.com

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.

[embed]Unity UI — Using Scrollbars and Scroll Rects By itself, the Unity Scrollbar doesn’t really do much of anything. While you could establish custom logic for its…medium.com

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