Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Room size select

Discussion in 'Scripting' started by gorbit99, Aug 31, 2015.

  1. gorbit99

    gorbit99

    Joined:
    Jul 14, 2015
    Posts:
    1,350
    I wanted to make a room size setting menu for my game, like in Word, when you create a table. I want it, so when the player presses one of the squares, it highlights the selected ones.How could i go about it?
     

    Attached Files:

    • Pic.png
      Pic.png
      File size:
      11.7 KB
      Views:
      833
  2. DrSnake

    DrSnake

    Joined:
    Oct 17, 2014
    Posts:
    33
    Give every cell a coordinate, make the topleft cell the 0,0 coordinate. that way when a player clicks cell 4,3 you can loop the cells till 4,3 and give those a different material.
     
  3. gorbit99

    gorbit99

    Joined:
    Jul 14, 2015
    Posts:
    1,350
    Actually, I "solved" to problem, I'm now using an other way of doing this, because this just looked awful