Unity 2023 Tutorial: Create a Scrollable/Draggable Upgrade List UI with Scroll Rect | UI Design

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ม.ค. 2025

ความคิดเห็น •

  • @plontulublalulu
    @plontulublalulu ปีที่แล้ว +95

    Tip: set the pivot of the panel to 0.5, 1 instead of 0.5, 0.5 to have it start at the top, not the middle

    • @marcin.drozdz
      @marcin.drozdz ปีที่แล้ว +5

      You deserve a decent beer. I had the same problem over a year ago and managed to forget how I dealt with it. You saved me dozens of minutes that I would have wasted looking for a solution.

    • @xXYannuschXx
      @xXYannuschXx ปีที่แล้ว +3

      Thanks man, saved my two braincells from dying.
      Do you know why he didnt need to do that in the video?
      He only set it the anchor to the top.

    • @SGTIB
      @SGTIB ปีที่แล้ว

      he did have that problem, just for some reason he diddnt show how to fix it @@xXYannuschXx

    • @Fuudo_123
      @Fuudo_123 ปีที่แล้ว +1

      ​@@xXYannuschXx I'd like to know too, the tip saved me, I rewatched the video multiple times just to see where I went wrong XD

    • @cetta2020
      @cetta2020 9 หลายเดือนก่อน +1

      THANK YOU FOR THE TIPS!

  • @3DavyJones
    @3DavyJones 3 ปีที่แล้ว +12

    I've been programming in Unity for almost half a decade and it's the first time I realise I can do calculations inside the numerical fields like you did in 4:18 . Thank you :D

    • @nxt_tim
      @nxt_tim 2 ปีที่แล้ว

      This works actually in many numerical fields, not just Unity! Such as Photoshop

  • @bloopydlooper8198
    @bloopydlooper8198 3 ปีที่แล้ว +22

    you just saved my career ♥

    • @gregorychristopher7039
      @gregorychristopher7039 3 ปีที่แล้ว

      I know I'm quite off topic but does anyone know of a good place to stream new tv shows online ?

    • @mauricioalfonso8521
      @mauricioalfonso8521 3 ปีที่แล้ว

      @Gregory Christopher I dunno try Flixportal. you can find it thru google =) -mauricio

    • @gregorychristopher7039
      @gregorychristopher7039 3 ปีที่แล้ว

      @Mauricio Alfonso Thanks, I went there and it seems like they got a lot of movies there =) I really appreciate it!!

    • @mauricioalfonso8521
      @mauricioalfonso8521 3 ปีที่แล้ว

      @Gregory Christopher No problem :D

  • @kingbling7571
    @kingbling7571 3 ปีที่แล้ว +22

    This is amazing. Simple and useful, recommending to anyone who wants a simple scroll UI panel in minutes! Cool stuff

  • @hugobarahona5552
    @hugobarahona5552 ปีที่แล้ว +1

    I used this to make a scrollable inventory with draggable items. It worked perfectly! Thank you for this video!

  • @kwelsty
    @kwelsty หลายเดือนก่อน

    thx, I didn't copy it, but needed to understand the concept, I appreciate this video you have made for others, I usually do not watch tutorials as it hinders my own ability to learn, rather than copy, but this was helpful for my UI building, I have only coded so far, never anything to do with UI

  • @tylorbrennen
    @tylorbrennen 3 ปีที่แล้ว +1

    Changed my life with the Layout group

  • @muinchishty2473
    @muinchishty2473 ปีที่แล้ว

    This is the best scroll rect unity tutorial out there. I have seen plenty

  • @theinfpguy5611
    @theinfpguy5611 2 หลายเดือนก่อน

    Best tutorial ever. Thanks so much!

  • @EternalStud3nt
    @EternalStud3nt 3 ปีที่แล้ว +25

    You can also Disable the option "Show Mask Graphic" instead of changing alpha to 1. Great video dude, helped me a ton.

  • @maxbrek2
    @maxbrek2 11 หลายเดือนก่อน +1

    Thanks bro this is gonna help me with my game jam.

  • @GrayFoxware
    @GrayFoxware ปีที่แล้ว

    I need this every once in a while and since I dont use it enough to remember it I have ventured back to this video about 6 or 7 times already. Thanks!

  • @martin_taavet
    @martin_taavet 3 ปีที่แล้ว

    Thank you! You are the only person who told me about size fitter and saved my keyboard from being smashed...

  • @loganmanor1626
    @loganmanor1626 11 หลายเดือนก่อน

    Thank you so much for this video! You saved me hours of searching!

  • @chinoarc
    @chinoarc 2 ปีที่แล้ว +1

    I just wanna say Thank you so much

  • @leotello864
    @leotello864 10 หลายเดือนก่อน +1

    unity 2023 tutorial made more than 3 years ago xD nice title change! I rate it!!

    • @ConsideraCore
      @ConsideraCore  10 หลายเดือนก่อน +2

      its a valid title change; still works today!

  • @davidc1425
    @davidc1425 2 ปีที่แล้ว +3

    For everyone who has the same issue like mine : my menu option are composed by 3 sprites. One of these three correctly "disappears" behind the mask, the other two don't. I figured out that the one that disappears has Material set to None while the other two have this Material value set with Sprites-Default. Set it to None and it will works.
    I hope this helps.
    Anyway, very nice tutorial :)

  • @hypepill7415
    @hypepill7415 ปีที่แล้ว

    Thank you that was really useful. Keep up the good work mate!

  • @Deanin
    @Deanin 4 ปีที่แล้ว +7

    Very helpful video! Scroll Rects in Unity are one of those things I will always forget how to do haha.

    • @rashidfarhan6223
      @rashidfarhan6223 3 ปีที่แล้ว

      same man I always forget how the scroll rect works

  • @Cextra_the_artist
    @Cextra_the_artist ปีที่แล้ว

    Thank you, you've saved me hours of work!

  • @evgeniykuzne5739
    @evgeniykuzne5739 ปีที่แล้ว

    Vertical layout component really helped me, thanks!

  • @halivudestevez2
    @halivudestevez2 8 หลายเดือนก่อน

    Like your style showing the things.

  • @GustavoAzevedoOficial
    @GustavoAzevedoOficial ปีที่แล้ว

    This is the one thing I needed! Thank you so much, man!

  • @crtglowgames
    @crtglowgames 6 หลายเดือนก่อน

    Thanks for this information dense yet accessible vid! Helped me through some sticky UI bits. Unrelated to your video but now I've a world of nested prefab variant UI hell to figure out. Probably shouldn't be prototyping and trying to build reusable components at the same time - though I see in many places on the Unity forums people with my same issue..!

  • @gamingattns7819
    @gamingattns7819 3 ปีที่แล้ว +1

    thanks this helped a lot i end up using horizonal layout group and with some tinkering with anchors i was able to make my sroll view responive :)
    Cheers buddy

  • @ryangoward-1947
    @ryangoward-1947 ปีที่แล้ว

    Thanks Zach, really great stuff!!

  • @onedaycode
    @onedaycode 7 หลายเดือนก่อน

    The second I add the Vertical Layout Group all members disappear...

  • @ksovv228
    @ksovv228 ปีที่แล้ว

    I do exactly the same as in the video, but there is a problem, there is no limit on scrolling with "Elastic", and with "Clamped" it stops scrolling at all, I have already watched all the videos on TH-cam and walked through different forums, everyone is talking about "Vertical Layout Group" and "Content size Filter", but they don't help in any way. What to do?

  • @Case-A-Lace
    @Case-A-Lace 3 ปีที่แล้ว

    Great tutorial hommie! This helped me out a lot!

  • @namelessbrat7197
    @namelessbrat7197 2 ปีที่แล้ว

    Thank you! Your tutorial is the only one that helped me! You explained everything masterfully!

  •  2 ปีที่แล้ว

    05:07 when set the mid size, all the content goes up and start in the middle of the list... How to solve?

  • @legendaryswordsman2279
    @legendaryswordsman2279 2 ปีที่แล้ว

    Straight to the point, good vid, keep up the great work

  • @fastbois6141
    @fastbois6141 2 ปีที่แล้ว +2

    Great and clear tutorial, cutting exactly to the chase. Thank you so much sir, you helped me a lot with my project and earned yourself a subscription!

  • @the_stray_cat
    @the_stray_cat 4 หลายเดือนก่อน

    im having a problem and im not sure what i missed, for some reson my list keeps starting in the middle . nothing ive tried has fixed it also with my menu when i add another button they overlap and i need to reset the spacing

  • @dsaassda
    @dsaassda 4 ปีที่แล้ว +5

    Thank you, best tutorial ❤️😍

  • @MineNrollDude
    @MineNrollDude 4 หลายเดือนก่อน

    Hey! Great tutorial! Have a question though. For my application the content is 3D card objects with multiple materials on them and the auto spacing only works if I child the cards to a plane, however the cards are still visable beyond the boundaries of the panel.
    Is there a way to make 3D objects with many materials work in the same way as your example? Being hidden when outside the mask? Thanks!

  • @HyperQuest
    @HyperQuest 3 ปีที่แล้ว

    Thanks for the video!

  • @Rosey-Eyez
    @Rosey-Eyez 3 ปีที่แล้ว

    Wow this was exactly what I was looking for tysm!

  • @cesarsfalcao
    @cesarsfalcao ปีที่แล้ว

    Thanks, great video!!

  • @neoblazealex
    @neoblazealex 6 หลายเดือนก่อน

    Thanks for the help!
    🤗

  • @andressblabla
    @andressblabla 3 ปีที่แล้ว

    Amazing, I'm so glad I found your channel!

  • @nils6227
    @nils6227 2 ปีที่แล้ว

    Use this video every time i need to set up a scrollable UI

  • @deekshithr862
    @deekshithr862 ปีที่แล้ว

    this is simple easy to follow and has everything you need😀

  • @IvanLopez-om6pw
    @IvanLopez-om6pw 3 ปีที่แล้ว

    Very good video bro! Saved my life too!

  • @ronikaraGame
    @ronikaraGame 3 ปีที่แล้ว

    That's awesome!! I was struggling with usual sprites before I discovered how Canvas work...

  • @naumov-channel
    @naumov-channel 7 หลายเดือนก่อน

    Thx, bro all works!

  • @OfficialMiles2Go
    @OfficialMiles2Go 2 ปีที่แล้ว

    Fantastic Video!

  • @starbuck3980
    @starbuck3980 2 ปีที่แล้ว

    I created a scrollview element and the scroll bounces back when i move it, why this can be? i just use the default UI scrollview Unity gives in Unity 2021

  • @arisaek7764
    @arisaek7764 ปีที่แล้ว

    Useful tutorial 👌

  • @thompson2491
    @thompson2491 5 หลายเดือนก่อน

    Thank YOU a lot!!

  • @CAESAR_IS_GOD_mohammadisaloser
    @CAESAR_IS_GOD_mohammadisaloser 2 ปีที่แล้ว

    do you happen to know how to scroll with the right joystick on an xbox/ANY controller

  • @reg8622
    @reg8622 3 ปีที่แล้ว +1

    HI,I made a scrollable buttons, which redirects to different scenes, (nearly 20 buttons). is there anyway to save the position at which i left the scene.(ex: i clicked 15th button, so when i come back from that 15th scene , i have to scroll again from the top and select 16th button)

    • @DARK_AMBIGUOUS
      @DARK_AMBIGUOUS 2 ปีที่แล้ว

      You could make it so the when you tap a button, the game gets the position of the scroll menu, or like where it is at and sets it as a save variable, and then make it so when the scene that has the scroll menu starts, the game gets the variable and sets the position to what the variable is, something like that. Or make it so the scene stays loaded always in the background so it doesn’t restart when you go back to it

  • @AdidasDoge
    @AdidasDoge 3 ปีที่แล้ว +1

    You are literally gonna be the next Brackeys

  • @mansoorahmadkhan3623
    @mansoorahmadkhan3623 3 ปีที่แล้ว

    This saved my time. Thanks!

  • @luiscarlosboteroagudelo9249
    @luiscarlosboteroagudelo9249 2 ปีที่แล้ว

    Really nice and useful video!

  • @VitorHugo-rj6uf
    @VitorHugo-rj6uf 3 ปีที่แล้ว +1

    What a great tutorial! Thank you!

  • @anonymousme3571
    @anonymousme3571 9 หลายเดือนก่อน

    What if I wanna do grid with 2 columns?

  • @hanskloss4168
    @hanskloss4168 2 ปีที่แล้ว

    How can I display the scroll bar menu and 3d scene at the same time? So that the player sees the scroll bar menu when playing.

  • @dawidziomalify
    @dawidziomalify 2 ปีที่แล้ว +1

    5:06 if it doesn't work, change Y pivot to 1

  • @conradoandrade7275
    @conradoandrade7275 3 ปีที่แล้ว

    Man, you know how to teach! Thanks!

  • @jansvec3855
    @jansvec3855 3 ปีที่แล้ว +1

    Hi. I have a little issue. In unity everything works great. But If i make a build and play on mobile my text content show over the rect. Any help?

  • @yigit6470
    @yigit6470 ปีที่แล้ว

    It doesn't scroll when my cursor is on the button. Buttons are prefab objects.

  • @imabean9710
    @imabean9710 ปีที่แล้ว

    Thanks bro you help me two times

  •  2 ปีที่แล้ว

    Thank youuu

  • @wenranlu619
    @wenranlu619 2 ปีที่แล้ว

    Thank you! this really works!

  • @fedrogamedev
    @fedrogamedev 3 ปีที่แล้ว

    The best tutorial i can say. because your narration is at it's best.

  • @PedrovoriskAB
    @PedrovoriskAB 3 หลายเดือนก่อน

    Great video thank you my friend!!! I am doing that inside a UI not working for me

  • @robertnagy3942
    @robertnagy3942 2 ปีที่แล้ว

    you play the bass guitar too, that's epic. What bands do you listen to?

  • @calcipher5073
    @calcipher5073 3 ปีที่แล้ว

    Good video!

  • @iscalio1985sv
    @iscalio1985sv ปีที่แล้ว

    That's working. Thank you :)

  • @moonzhild
    @moonzhild 3 ปีที่แล้ว +1

    VERY HELPFUL! THANKS!

  • @dedz
    @dedz 2 ปีที่แล้ว

    Awesome tutorial! Really useful!

  • @michelmilek2891
    @michelmilek2891 2 ปีที่แล้ว

    Great tutorial, thank you very much!

  • @sufianahmad55
    @sufianahmad55 3 ปีที่แล้ว

    very well explained

  • @xingorro8605
    @xingorro8605 3 ปีที่แล้ว +2

    I'm trying to understand that, and each time i watch You video, i learn something new.

  • @MilkTheDuck
    @MilkTheDuck 3 ปีที่แล้ว

    very easy to follow , Thank you very much👍👍😀😀😘

  • @negligiblefish
    @negligiblefish 4 ปีที่แล้ว +11

    at 3:55 instead of setting the alpha to 1 you can just go to the Mask component and turn off "Show Mask Graphic"

  • @erfanjamshidi6228
    @erfanjamshidi6228 3 ปีที่แล้ว +1

    Thanks so helpful.!

  • @vectokhanh3416
    @vectokhanh3416 5 หลายเดือนก่อน

    Thanks!

  • @aksimilumaspvp7278
    @aksimilumaspvp7278 2 ปีที่แล้ว +1

    saved me, thx

  • @luisguilhermesilvarodrigue8242
    @luisguilhermesilvarodrigue8242 2 ปีที่แล้ว

    Without the transparent image in the backgroud, the scroll does not work if the draggin or the cursor starts in the space between elements

  • @Saskamon
    @Saskamon 2 ปีที่แล้ว

    Thanks a lot, mate.

  • @imabean9710
    @imabean9710 ปีที่แล้ว

    Its Help me Alot

  • @darknside
    @darknside 3 ปีที่แล้ว

    Bro nice guide, Don't know how to improve smoothness on your smartphone?

  • @HelPfeffer
    @HelPfeffer 3 ปีที่แล้ว

    Great video, thank you

  • @hellbladeplay7137
    @hellbladeplay7137 3 ปีที่แล้ว +1

    Bro. You save me. You best. Do what you do, and gl.

  • @belkmaster
    @belkmaster 2 ปีที่แล้ว

    Do you have a video showing how you found or made the buttons and panels used in this video? I really like the look and would like to try something similar.

  • @freelancepakistangames7245
    @freelancepakistangames7245 3 ปีที่แล้ว

    Thanks man ❤

  • @AnimilesYT
    @AnimilesYT 3 ปีที่แล้ว +1

    I need a horizontal scroll area with dynamic content, but if I follow these steps and replace every vertical thing with horizontal, then it will expand from the middle outward to the left and right instead of only expanding to the right. Any ideas on how to fix this?

    • @ConsideraCore
      @ConsideraCore  3 ปีที่แล้ว +4

      Set the panels' (where the content is) Y pivot to 1

    • @skidderdidder2346
      @skidderdidder2346 2 ปีที่แล้ว

      @@ConsideraCore I'm having the same issue as here except I cant fix it since the panels y pivot is already set to 1. I even re-followed this tutorial and still don't understand where I went wrong.

  • @jeffietheturtle4111
    @jeffietheturtle4111 3 ปีที่แล้ว

    thanks, helped me a lot

  • @zerozoom1.023
    @zerozoom1.023 ปีที่แล้ว

    Muy buen video, it's perfec

  • @LALESPETROS
    @LALESPETROS 3 ปีที่แล้ว

    Great video indeed!!! :)

  • @Coconut.Capybara2
    @Coconut.Capybara2 2 ปีที่แล้ว

    Thanks so much!

  • @trueblue97
    @trueblue97 2 ปีที่แล้ว +1

    Hey there. Wondering if anyone here has the issue to my current problem. I am trying to create a vertical scroll view in my app with text on top, and a bunch of buttons under that. The problem I'm having is that I need my text's vertical height to be dynamic. Any time I use a Content Size Fitter on my text all the buttons appear on top of it at runtime, rather than below like I want.
    If I remove the Content Size Fitter, than my text box size remains static.
    Really stumped here. If anyone stumbles on this comment and knows a solution please, help a guy out!
    Thanks in advance!

    • @LukulluTV
      @LukulluTV 2 ปีที่แล้ว

      Have you found a fix?

    • @trueblue97
      @trueblue97 2 ปีที่แล้ว

      @@LukulluTV Ah man, tbh I did figure it out, but I forget how now, cuz its been so long. I do have the template still though, so I'll try to look into it, or just make a download link for it somewhere so you have something to go off of.
      Could be a bit, but I'll try to report back soon when I do one of those things!

    • @trueblue97
      @trueblue97 2 ปีที่แล้ว

      @@LukulluTV Update: I still forget how I did it, but I have a Unity CYOA template I made the same way (that was my reason for figuring out how)
      Its a small project, so I uploaded it.
      If you inspect my template, you should find what your looking for... hopefully.
      I think whatever it is, its really dumb, but it does work lol.
      Anyways, here's the link:
      drive.google.com/drive/folders/1mj1qsp8a5DZobPObACt3I14lcXvAaps4?usp=sharing
      I hope it helps XD!

  • @MathsPlusGames
    @MathsPlusGames 3 ปีที่แล้ว +2

    Btw, How comes you didn't use the Built in UI/Scroll-View?
    Trying to figure it out, seems identical to what you have done, but its bugging out on me

    • @ConsideraCore
      @ConsideraCore  3 ปีที่แล้ว +1

      I did use the built in one

    • @MathsPlusGames
      @MathsPlusGames 3 ปีที่แล้ว +2

      @@ConsideraCore I suppose you did, I just meant instead of making rect-transforms and adding the components, there is one already pre-build with those components. under UI/Scroll-View

    • @MathsPlusGames
      @MathsPlusGames 3 ปีที่แล้ว +2

      Anyway, using your step by step process worked for me, using the pre-put together one did not lol. thanks a lot and keep up the good work

  • @thecompletionist605
    @thecompletionist605 2 ปีที่แล้ว

    Great, thank you.

  • @nwotyzarc
    @nwotyzarc 3 ปีที่แล้ว

    THANK YOU!!!!!!!!!!!!!!!

  • @chasee895
    @chasee895 3 ปีที่แล้ว

    This doesn't work, the content size fitter will not add things to the bottom, instead it adds them to the middle I cannot get it to fix.

    • @ConsideraCore
      @ConsideraCore  3 ปีที่แล้ว

      Set the panels' (where the content is) Y pivot to 1

  • @micmicmw
    @micmicmw 4 ปีที่แล้ว +1

    Wonderful tutorial clear and to the point. Thank you so much.

  • @MathsPlusGames
    @MathsPlusGames 3 ปีที่แล้ว +1

    Very clean