Mohd Sohail Ahmed
Mohd Sohail Ahmed

Reputation: 137

How to Show scrollable panel in Unity3d

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

enter image description here

after i click the menu button i want the scrolling ui to appear like this. enter image description here

It'd be great if someone could point out some kind of a tutorial that would cover this.

Upvotes: 0

Views: 895

Answers (1)

Programmer
Programmer

Reputation: 125245

You need the following:

  • Image component - This is used to represent the items you want to display
  • Grid 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

Related Questions