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/
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.
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.
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.
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.
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.
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
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)
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
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!
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.
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 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
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.
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/
nice video! +1 sub
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.
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.
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.
Finally Samyam to the rescue, I cannot believe how small things like pivots fall out of my mind.
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.
Super clean and straight to the point. I'll be referencing this video a LOT in the future!
This is an amazing tutorial. I didn't even know Unity had these features. It's so very easy.
Can you show us how to add scroll view when we have large number of objects? Like dynamically display only few on screen
Very clean, understandable and straight to the point. Love it, keep it up.
Wow. This video covered a lot of gaps in my knowledge. Subbed for sure.
Thank you Samyam, I was actually thinking about doing something with scrolling recently.
Another great video, Sam! I keep forgetting about those IPointerXxx interfaces, thanks for the reminder!
this is eerily close to what i was looking for. good tempo, too!
Thank you so much for the donation! ❤️
Just what I needed for my internship project!!! Thankss
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.
thank you, the Layout Groups solved my issue I was trying to solve!
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
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
Glad to hear! 😄
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)
Praise you, oh, wise keeper of unity secrets and all things unknown! A lamb shall be offered in your name.
Nice. That's exactly what I was looking for🥳
Thank you! this is what i'm looking for 😁
Such incredible timing, can you read my mind? 😍
Yes
@@samyam 😱
you're a great teacher
Thank you!
Thanks a lot for this tutorial. ❤️👍👏
This is exactly what i need thank you 👍
This is really helpful. Thanks a lot!!!
Is it possible to divide the horizontal scroll into 4 pages & then make the scroll to snap to each page?
I tried making this with a vertical layout group instead, but all of the child items were just centered in the middle.
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
That was so cool.
Can you Make a Short Video on How to adjust Cinemachine Cam Sensitivity through Slider pls...
Please make a tutorial for tab menu system. Like in shop menu of many casual games.
Hi💜Can you make a tutorial for opening portal from one scene to another scene.
Buen vídeo como siempre 😃
Gracias!
good one !
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!
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.
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
Adding in an infinite amount of items through code, and having the UI automatically fit any number of items.
@@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
👍
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.