Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Making diagonal lines on a set of pixels

Discussion in 'General Graphics' started by alterix97, Apr 20, 2020.

  1. alterix97

    alterix97

    Joined:
    Oct 7, 2019
    Posts:
    42
    I have a province class, which has a list of Vector2s called pixels. I have a script that takes each of these pixels and colors them to the color of the province's owner. My game is a grand strategy game, in which people play as countries, and an important part of the game is war. In wars players occupy enemy land, and I need the color to change to reflect that. I could of course change the color to that of the occupant, but the lands ownership doesn't change in such an instance, just its occupant, so I was looking for a way to make diagonals across the land. So I want to change this example.png to this example2.png as the occupant changes