- Home /
How to randomize the order of game objects in a grid layout?
I'm making a card game where each player can drag and drop cards from their hands onto a main player area. The main player area has a grid layout component so when cards are dropped onto it, they lay out across it in a flexible row count. I want to attach a script to a button that will shuffle the order the cards appear on the grid layout, but I have no idea where to start! Any help would be appreciated!
Answer by xxmassassenxx · Apr 14, 2020 at 07:47 PM
https://docs.unity3d.com/ScriptReference/Random.Range.html
that should probably be a good place to start
Your answer
![](https://koobas.hobune.stream/wayback/20220612231152im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
2x2 grid instead of 1x1 0 Answers
!URGENT! How to make a grid of clickable objects. 1 Answer
Grid Letter Box is not expanding, 0 Answers
How can i make the for-loop only run a command once 1 Answer