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

Geometric shapes

Discussion in '2D' started by ivanm43, May 23, 2015.

  1. ivanm43

    ivanm43

    Joined:
    Mar 30, 2015
    Posts:
    19
    Hello everyone,
    I want to make a triangle, circle and a square but have no idea how. I tried everything but I'm completely noobie so I didn't succeed. I really need your help.

    Thank you,
    Kind regards,
    Ivan.
     
  2. steego

    steego

    Joined:
    Jul 15, 2010
    Posts:
    968
    The easiest way is to simply paint them in photoshop, gimp or paint.net, and import them into unity as sprites.
     
    ivanm43 likes this.
  3. ivanm43

    ivanm43

    Joined:
    Mar 30, 2015
    Posts:
    19
    Thank you for the answer but I still have problem with picture background.
    It's white but I'd like to have just shape without any background ...
     
  4. steego

    steego

    Joined:
    Jul 15, 2010
    Posts:
    968
    You simply need to make the background transparent in your image editor. When you set the texture type to sprite in unity it should pick this up.
     
    ivanm43 likes this.
  5. ivanm43

    ivanm43

    Joined:
    Mar 30, 2015
    Posts:
    19
    I did and still my background is white :(
     
  6. Jarbi-James

    Jarbi-James

    Joined:
    Jun 15, 2013
    Posts:
    54
    Make sure you are exporting the image as a file type that includes an alpha channel; like .png
     
    ivanm43 likes this.
  7. ivanm43

    ivanm43

    Joined:
    Mar 30, 2015
    Posts:
    19
    Yeaah it works :)
    I was exporting my pictures as .jpg so I always had background.
    Thank you both for helping! :)
     
    Jarbi-James likes this.