Gallery list facilitates populating gallery items easily through Card List Manager component. We only need to manage the Item Template to change the style or bind actions for the gallery items.
https://lh3.googleusercontent.com/MOkUZpgql6QWXsvRgigvXpCAloaIaGnK6lrORcgtB0fJEDoxYxfo710eixu_tnENkP7RbUNv_iZVNm30eZPDIaVa0nMlMAaq8UXvB1yH67VbLxKS0yRvRAR31LsQYs7CyA
On Card List Manager, you can put the title, subtitle, image and description of the list item. You can also reorder the list by dragging the item inside the list.
https://lh3.googleusercontent.com/V7giKzuoseChInfUnJcGN4cYj0dvoWv413GxbuBSffeYDy3CcNMhg06Blot53JinpC3T9TN-IEmSk0gUAb0BYctD5lAA6-6jO30gwIm118IQ1dbDJP34ekM5iWes5xPxzg
If you want to dynamic populate list items through scripts. Please checkout the example script in Demo/ExampleDynamicCardList.cs
On Card List Manager, double click List Content, it will locate to the Content Object.
https://lh4.googleusercontent.com/Sa7S7Of9qYEdw9hCuzV4kVggDYUbN2eNEk5FxlLjaGdUW8sbUBFCpvwWev3YbGUuRLr7ApXSirhCSJ5tzKCbhovrIG2FZ7YU5nki8XV4nBrE_EvMSV_gFDov269Yuyslog
On the Content Object > Grid Layout Group, you can change the cell size.
https://lh4.googleusercontent.com/IPCPvdDB9etJ6eCIm6OPudd9j0mpIZ9TlppY4OujQjP5NJUABawS1zanhDyvGAoxE2ISI_23ooS0uVaShBfzSmLIgqgyRdCH8OHg-SV430JRIT_n_BPSfNdaLWbGdV5fWg
Locate to the Item Template game object, you can then change Image and title size .
https://lh6.googleusercontent.com/4OPzZ0-rp9-Ol9YT6xayy1WqeIZQgAimLYF9zTHKTOkdRICquF8bGPDr0LFH2oN7CPdyI36WgRDrOWLpcC1R3ZhXWF9gGMIxILP7H0wMRdfJRqPKD-5Juv3pgNuA2syTQQ
You can simply add a OnClick actions on Item Template.
Or you can subscribe to the OnCardClick
method, please refer to the ExampleCardItemAction.cs
script which is also attached on the ItemTemplate in the Demo scene.
ExampleCardItemAction.cs: Click on item and show details on the right panel
ExampleCardItemAction.cs: Click on item and show details on the right panel