Reputation: 137
I'm trying to show a ui panel using unity3d ,I have a main camera scene after i click a button ,i want my scrollable panel to show up
just like this
after i click the menu button i want the scrolling ui to appear like this.
It'd be great if someone could point out some kind of a tutorial that would cover this.
Upvotes: 0
Views: 895
Reputation: 125245
You need the following:
Image
component - This is used to represent the items you want
to displayGrid Layout Group
component - This is used to arrange those
image components you want to display.Content Size Fitter
component - This is used to make sure
that those Images fit in the Grid Layout.The video from here should show you how to use these 3 together to get what you are looking for. To detect which Image
is clicked, see this post.
Upvotes: 2