How to: Dynamic Scroll View in Unity

  Рет қаралды 36,376

samyam

samyam

Күн бұрын

Пікірлер: 51
@samyam
@samyam 2 жыл бұрын
Scrolling is great, but don't scroll past the subscribe button and forget to press it ❤️ Wishlist my new game BUMBI on Steam! store.steampowered.com/app/2862470/BUMBI/
@GabrielGcbs
@GabrielGcbs Жыл бұрын
nice video! +1 sub
@Omphaloskopie
@Omphaloskopie Жыл бұрын
this is eerily close to what i was looking for. good tempo, too!
@samyam
@samyam Жыл бұрын
Thank you so much for the donation! ❤️
@GabrielGcbs
@GabrielGcbs Жыл бұрын
For anyone having the same issue as me: padding, spacing and all dinamic settings weren't working no my prefab. I realized that the problem is that my prefab was an empty gameObject with another gameObjects as childs, and the image source for them was on spriteRenderer, but in order to work on scrollView, the objects must be Canvas Images, so go to UI->Image to create your image prefabs.
@Quinthelas
@Quinthelas Жыл бұрын
Thank you so much for this comment, I was having issues with the layout groups not working and thanks to your comment I realised to switch my sprite renderers into the image ones.
@TheMeeelting
@TheMeeelting Жыл бұрын
Ive been working with unity for 8+ years now and I keep forgetting how to do this (as I maybe do it once every 3 years...) so I have to keep looking it up. This was short and to the point. Great video. Subscribed. Thank you.
@ShinichiKudoQatnip
@ShinichiKudoQatnip Жыл бұрын
Finally Samyam to the rescue, I cannot believe how small things like pivots fall out of my mind.
@seanloughran6714
@seanloughran6714 2 жыл бұрын
Super clean and straight to the point. I'll be referencing this video a LOT in the future!
@AllOfTheAbove777
@AllOfTheAbove777 2 жыл бұрын
Thank you Samyam, I was actually thinking about doing something with scrolling recently.
@gllmusic
@gllmusic Жыл бұрын
This is an amazing tutorial. I didn't even know Unity had these features. It's so very easy.
@mutlugameofhalit
@mutlugameofhalit 2 ай бұрын
4:22 Today i spent 2 hour to create my self auto-sizer script, this is incredible and so funny that Unity have a component for this 😅😂😂 Today's lesson: You need to watch tutorial before you make something.
@peterferencz
@peterferencz Жыл бұрын
Very clean, understandable and straight to the point. Love it, keep it up.
@obsleet
@obsleet 2 жыл бұрын
Wow. This video covered a lot of gaps in my knowledge. Subbed for sure.
@santoshnalla2283
@santoshnalla2283 2 жыл бұрын
Can you show us how to add scroll view when we have large number of objects? Like dynamically display only few on screen
@pixelshenanigans1511
@pixelshenanigans1511 2 жыл бұрын
Another great video, Sam! I keep forgetting about those IPointerXxx interfaces, thanks for the reminder!
@meisterachi
@meisterachi Жыл бұрын
thank you, the Layout Groups solved my issue I was trying to solve!
@nikunjsaraf5150
@nikunjsaraf5150 2 жыл бұрын
Just what I needed for my internship project!!! Thankss
@Moondog943
@Moondog943 Жыл бұрын
Thanks for the great tutorial, with this and your other video about creating a leaderboard it helped me understand how to create a dynamically loading leaderboard! These have been super helpful and I know I can use your content as resources in the future
@samyam
@samyam Жыл бұрын
Glad to hear! 😄
@uhrcru
@uhrcru 4 ай бұрын
SO COOL, It helped me a lot but would be cooler if you would explain how to add more items like 2x2 instead to 1x10
@mariokartgameplay6622
@mariokartgameplay6622 2 жыл бұрын
Nice. That's exactly what I was looking for🥳
@gamogis
@gamogis 2 жыл бұрын
actually you could serialize and instantiante items not as gameObject but as ScrolViewItem, in this case you don't need to tryGetcomponent method and acces to properties and methods directly.
@MattRaffel
@MattRaffel 2 жыл бұрын
I tried making this with a vertical layout group instead, but all of the child items were just centered in the middle.
@looopy1
@looopy1 2 жыл бұрын
you're a great teacher
@samyam
@samyam 2 жыл бұрын
Thank you!
@shaunmax8165
@shaunmax8165 2 жыл бұрын
Is it possible to divide the horizontal scroll into 4 pages & then make the scroll to snap to each page?
@HausCoding
@HausCoding 2 жыл бұрын
Thank you! this is what i'm looking for 😁
@ShinichiKudoQatnip
@ShinichiKudoQatnip 2 жыл бұрын
Such incredible timing, can you read my mind? 😍
@samyam
@samyam 2 жыл бұрын
Yes
@ShinichiKudoQatnip
@ShinichiKudoQatnip 2 жыл бұрын
@@samyam 😱
@ligofleyens9131
@ligofleyens9131 2 жыл бұрын
It's a bit more complicated, but could you please teach how to make a book interface with page turning animation? Something like some games do (Skyrim I remember does)
@biswajeetchaudhuri832
@biswajeetchaudhuri832 2 жыл бұрын
Thanks a lot for this tutorial. ❤️👍👏
@ligofleyens9131
@ligofleyens9131 2 жыл бұрын
That was so cool.
@ThiccyDev
@ThiccyDev 2 жыл бұрын
This is exactly what i need thank you 👍
@QHuy11
@QHuy11 2 жыл бұрын
This is really helpful. Thanks a lot!!!
@amikay93
@amikay93 2 жыл бұрын
Buen vídeo como siempre 😃
@samyam
@samyam 2 жыл бұрын
Gracias!
@PICHONLINX
@PICHONLINX Жыл бұрын
Praise you, oh, wise keeper of unity secrets and all things unknown! A lamb shall be offered in your name.
@seanloughran6714
@seanloughran6714 2 жыл бұрын
I'm having a weird bug. When I copy and paste or drag my prefab into the Content panel, everything works fine. But when I instantiate through code exactly how you did, all of the items get squished and get negative sizes. Anyone have any ideas? I've had the worst luck with the [Horizontal/Vertical]Layout groups cause of things like this. EDIT: In code, I force the .sizeDelta to what I know it should be and it looks great. So weird!
@Sylfa
@Sylfa 2 жыл бұрын
Are you using the Start event/method? As far as I know the layout groups don't react to having items added to them so you have to trigger them to do a layout if you have already passed the layout phase.
@Hazzel31337
@Hazzel31337 2 жыл бұрын
good one !
@asadickens9353
@asadickens9353 2 жыл бұрын
I have always done the content size calculations in code u.u ContentSizeFitter would have saved me soooo much math @.@ I also always put a button in the prefab for click events! I think the interface is generally better. Despite building many dynamic scroll views I still have more to learn /o/ thanks for the tid bits! Now one thing I couldn't solve was an infinite scrolling scroll view.... where the items loop back around. Conceptually I understand it, but mathematically it wasn't working right. I'm still alive so I will figure it out XD
@shubhampatel8193
@shubhampatel8193 2 жыл бұрын
Can you Make a Short Video on How to adjust Cinemachine Cam Sensitivity through Slider pls...
@biswajeetchaudhuri832
@biswajeetchaudhuri832 2 жыл бұрын
Please make a tutorial for tab menu system. Like in shop menu of many casual games.
@vishwa2602
@vishwa2602 2 жыл бұрын
Hi💜Can you make a tutorial for opening portal from one scene to another scene.
@watercat1248
@watercat1248 2 жыл бұрын
This definitely scrolling but what do you mean by dinamic? The only reason don't use scrolling very offended in unity is because the is don't work correctly wean you use arrow keys and dpad what I mean by that is let say that I have i list with items in the dinamic scrolling wail that player able to select with keyboard or controller the right item wean the go to the go out off the view area for some reason the don't move the don't scrolling the scroll bar
@samyam
@samyam 2 жыл бұрын
Adding in an infinite amount of items through code, and having the UI automatically fit any number of items.
@watercat1248
@watercat1248 2 жыл бұрын
@@samyam do you know how to make the scrolling area to move wean the wean someone use keys and move in the object on scroll that is out of view area? If you don't know don't wory I will ask in the discord company
@jasonwilliams8730
@jasonwilliams8730 2 жыл бұрын
👍
@jolene6911
@jolene6911 Жыл бұрын
Thanks! I wasn’t aware of TryGetComponent() previously, it’s a great fail safe method. I added an else in there to Debug.LogError() when the component wasn’t found.
The Power of Scriptable Objects as Middle-Men
17:41
samyam
Рет қаралды 132 М.
every step to actually make your dream game (then sell it)
24:27
Andro, ELMAN, TONI, MONA - Зари (Official Music Video)
2:50
RAAVA MUSIC
Рет қаралды 2 МЛН
OCCUPIED #shortssprintbrasil
0:37
Natan por Aí
Рет қаралды 131 МЛН
Scroll View in Unity - 2021 Tutorial
7:37
Tarodev
Рет қаралды 116 М.
Scrolling and scrollbars in Unity - Unity UI tutorial
5:42
Coco Code
Рет қаралды 119 М.
Scroll View. Пошаговое создание. Unity3D
12:03
Unity Developer
Рет қаралды 12 М.
i paid Fiverr devs to make a game in Unreal Engine 5
10:05
samyam
Рет қаралды 146 М.
Creating a Custom Tab System in Unity
13:45
Game Dev Guide
Рет қаралды 239 М.
Giving Personality to Procedural Animations using Math
15:30
t3ssel8r
Рет қаралды 2,7 МЛН
How to make AWESOME Scene Transitions in Unity!
19:45
Brackeys
Рет қаралды 969 М.
Andro, ELMAN, TONI, MONA - Зари (Official Music Video)
2:50
RAAVA MUSIC
Рет қаралды 2 МЛН