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. Dismiss Notice

Draw random lines on a grid and fill with color

Discussion in 'Scripting' started by Riviere Delta, Aug 26, 2014.

  1. Riviere Delta

    Riviere Delta

    Joined:
    Aug 26, 2014
    Posts:
    8
    Hi,

    I am trying to build a project where player moves and draw lines randomly on a grid.which can create rectangles. I want to fill the rectangle with color or texture when the player completes the rectangle. How do I measure that all four edges of rectangle are drawn to fill the color? Its kind of a effect like a Sega Zoom game.

    I am using arrow keys to control player movements. and trail renderer to draw lines.

    Please help me to resolve this.