Search Unity

Memory Grid

Discussion in 'Scripting' started by williamands, Oct 21, 2020.

  1. williamands

    williamands

    Joined:
    Oct 21, 2020
    Posts:
    4
    Hello, I'm making a project about a memory game like this for example https://humanbenchmark.com/tests/memory

    I want to know how do I change grind count by scripting?
    upload_2020-10-21_21-37-28.png

    I want to know how can I change the Cell Size and the Constraint Count value in the Grid Layout Group
    upload_2020-10-21_21-39-20.png

    It would be helpful for me to set the level to increase difficulty.
     

    Attached Files:

  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    williamands and PraetorBlue like this.
  3. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,689
    I agree with Uncle Joe, you can probably just poke at these references and change them.

    Keep in mind you want to track your own notion of what is actually inside each cell to do the game logic (such as in your own 2D array of cells), and then only use the Grid for presentation, otherwise it can get veeeeery tricky if you rely on storing state in the UI.
     
  4. williamands

    williamands

    Joined:
    Oct 21, 2020
    Posts:
    4
    Ahhhh I see, I'm still new to this intermediate unity programming but thanks :D