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

Where is the create 2D triangle sprite option

Discussion in '2D' started by Mold215, Jun 8, 2021.

  1. Mold215

    Mold215

    Joined:
    May 28, 2021
    Posts:
    4
  2. Johan_Liebert123

    Johan_Liebert123

    Joined:
    Apr 15, 2021
    Posts:
    474
    If you right click in the Project tab, go to create, sprites then there should be an option for a Triangle
     
  3. Mold215

    Mold215

    Joined:
    May 28, 2021
    Posts:
    4
    I see the same menu as if I click assets on the top. No triangle option and the sprites option is in a different place then in the docs. Is there a setting or a different mode I'm in or something?

    upload_2021-6-8_20-28-49.png
     
  4. Johan_Liebert123

    Johan_Liebert123

    Joined:
    Apr 15, 2021
    Posts:
    474
    upload_2021-6-9_10-47-49.png
    Oh I think it's different because your in 2d, i'm in 3d right now. Just give me a couple minutes to figure it out
     
  5. ThunderCodes

    ThunderCodes

    Joined:
    Jul 26, 2015
    Posts:
    1
    I was wondering the same - I can't find triangle under the sprites menu in my 2D or 3D project, using Unity 2020.3.5f1
     
  6. goluparekh87

    goluparekh87

    Joined:
    Oct 29, 2020
    Posts:
    1
    same problem bro did you got solution?
     
  7. Tyrant7

    Tyrant7

    Joined:
    Aug 15, 2019
    Posts:
    34
    I don't think that there is a default triangle sprite included in Unity, but you could easily create one by going to a drawing program, drawing a triangle, and importing it into your game. If you wanted to add a triangle under the Sprites menu I would suggest looking at the MenuItem attribute, but that seems pretty unnecessary for you situation.
     
  8. ed_s

    ed_s

    Unity Technologies

    Joined:
    Apr 17, 2015
    Posts:
    165
    Hi, just to add some clarity, the 2D Sprite primitives were changed in 2020.3 but it looks like not all of the documentation was updated to reflect this. Here's where you can find out about the current 2D Sprite primitives.

    https://docs.unity3d.com/Manual/2DPrimitiveObjects.html
     
  9. Kragh

    Kragh

    Joined:
    Jan 22, 2008
    Posts:
    656
    But... why? It was SO easy to create a triangle before (Which I would consider the most fundamental sprite primitive, conceptually speaking). We had it, now it's gone. I simply don't get why you would ever make an update to Unity, and then remove such a thing..?!??
     
    smoksde and april_4_short like this.
  10. april_4_short

    april_4_short

    Joined:
    Jul 19, 2021
    Posts:
    489
    And not be able to say: "It's been removed... because..."
     
    smoksde likes this.
  11. april_4_short

    april_4_short

    Joined:
    Jul 19, 2021
    Posts:
    489
    Can we please get the triangle back?
     
    Wordsonplay and MousePods like this.
  12. Wordsonplay

    Wordsonplay

    Joined:
    Apr 29, 2013
    Posts:
    21
    Agreed! Bring back the triangle!
     
  13. gekalabya

    gekalabya

    Joined:
    Nov 1, 2020
    Posts:
    1
    We want triangle back
     
    camporation likes this.
  14. coader-io

    coader-io

    Joined:
    Jan 11, 2022
    Posts:
    1
    Joining triangle gang here. Bring back the triangle!

    Or even better - offer an n-sided polygon option.
     
    camporation likes this.
  15. Gyrostat

    Gyrostat

    Joined:
    Dec 6, 2021
    Posts:
    1
    gib triangel
     
    sagitbolat likes this.
  16. Ted_Wikman

    Ted_Wikman

    Unity Technologies

    Joined:
    Oct 7, 2019
    Posts:
    876
    Thanks for voicing out that you would like to see the triangle re-added. Could you tell us why you need a triangle asset and what you would use it for?

    Also, do note that you can quite easily create your own triangle with the following steps:
     
    DragonCoder and Vicki7 like this.
  17. Vicki7

    Vicki7

    Joined:
    Jun 28, 2021
    Posts:
    1
    Thank you Ted.
    The triangle could be used for countless different things, for example spike enemies, or a player sprite, or anything your imagination leads you to. This diverse shape can be quite important for unity users that are just starting out, and making small projects (like myself).
    I reckon downloading a drawing program, or entering the sprite editor just to add such a fundamental object (which doesn't even work or scale properly as you showed by cutting a square in half), would be sad, especially when it was previously available in the game engine.
     
    Last edited: Jan 12, 2022
    TakoHachi8, mgear, sagitbolat and 2 others like this.
  18. sagitbolat

    sagitbolat

    Joined:
    Nov 10, 2019
    Posts:
    1
    An equilateral triangle can be used for a variety of reasons. You could use it to indicate a direction when you are testing object rotation scripts. You can use it for things like placeholder player, enemy, projectile, or floortile art.

    I personally used the triangle in the past in order to prototype bullet hell games, as the triangle allows you to easily see the direction, something that the rest of the shapes do not allow. The diamond is not good enough as it identical in 180 degree slices. The square look identical in 90 degree and 180 degree slices. The hexagon in 180 degree slices. The triangle has distinct orientations in all 8 directions (up down left right and all combinations of these), so it makes for a great debugging tool for applications that require rotations in 4 or 8 directions.

    The fact that the triangle was equilateral also allowed it to be tiled in a formation only possible with an equilateral triangle. The procedure to create the triangle that you showed in your post is for a right triangle which has wildly different tiling.

    Using your point, I could create a hexagon with 6 equilateral triangles, so why was the triangle removed instead of the hexagon?

    On top of this, we already have 2 hexagons. One of which is just a rotated version of the other. If you are trying to save space by removing the triangle, why on earth do we have 2 of the same shape, just with different rotations?

    I would understand the reluctance to add the shape to the engine if it was a brand new feature request, but this was something the engine already had available in the past, so I do not understand why it could not be added back.
     
  19. Andrey_Core

    Andrey_Core

    Joined:
    Nov 5, 2021
    Posts:
    1
    We still want triangle!
     
  20. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,529
    I think that has been established so your post along with the other "me too" posts do not really add anything useful to the thread. It has been discussed internally, nobody has forgotten. ;)
     
    MousePods likes this.
  21. Pixitales

    Pixitales

    Joined:
    Oct 24, 2018
    Posts:
    226
    You can make your own triangles. Personally I use triangles to make slopes/ramps and add round corners for walls using tilemap editor. I see alot of people just rotate a rectangle to form a ramp, but that looks kinda ugly in my opinion.
     
    Last edited: Mar 10, 2022
  22. rishikdey1

    rishikdey1

    Joined:
    Jun 12, 2021
    Posts:
    1
    You can take the hexagon pointed tip and hide a have of it then it looks like a triangle
     
  23. GileanVoid

    GileanVoid

    Joined:
    May 10, 2016
    Posts:
    14
    I dont have create sprite option at all. Where can I find it? upload_2022-5-29_15-21-23.png
     
  24. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,529
    Have you added the 2D Sprite Package? if not, you shouldn't expect to be able to use it.
     
    GileanVoid likes this.
  25. dfnch

    dfnch

    Joined:
    Jul 14, 2022
    Posts:
    1
    Hi, I was trying to make a triangle and after reading all posts here I can confirm I have 2D Sprite Package in my project however I can´t edit a square as suggested with Sprite Editor because a message says "Editing is disable because asset is not editable".
     
  26. i-am-among-unity

    i-am-among-unity

    Joined:
    Oct 21, 2020
    Posts:
    2
  27. Leo-Yaik

    Leo-Yaik

    Unity Technologies

    Joined:
    Aug 13, 2014
    Posts:
    434
    We are currently looking into this ;)
     
    Hayden97 and pixelmixer like this.
  28. RandomGeneratorCodes

    RandomGeneratorCodes

    Joined:
    May 8, 2020
    Posts:
    6
    Take your time on fixing this! I know you have a lot on your hands considering you have 30 million other deprecated assets you're planning to "look into re-adding"

    Jokes aside, I love this engine, but please add the triangle back.
     
  29. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,529
    Would you mind naming one of the deprecated assets you're referring to that the 2D team are involved in?

    I hope you are not too blocked in game dev by not having a create triangle option. Joking. ;)

    Joking, aside, I could be wrong but AFAIK this change has landed. I'd need to double check and if so, what version of Unity it landed in though.
     
    MousePods likes this.
  30. Ted_Wikman

    Ted_Wikman

    Unity Technologies

    Joined:
    Oct 7, 2019
    Posts:
    876
    MelvMay likes this.
  31. Unrighteouss

    Unrighteouss

    Joined:
    Apr 24, 2018
    Posts:
    599
    I appreciate the effort, but it's really hard to make squares with equilateral triangles:

    Triangle.JPG

    If you could also add a right triangle with two 45 degree angles, that would be awesome! I'm so close to upgrading... just need this, and then maybe the implementation of the automatic weight generation fix :p
     
  32. Ted_Wikman

    Ted_Wikman

    Unity Technologies

    Joined:
    Oct 7, 2019
    Posts:
    876
    This fix is making its way out as we speak. It is now available in
    • 2D Animation 10.0.0-pre.1 (Unity 2023.1)
    • 2D Animation 9.0.1 (Unity 2022.2)
    • 2D Animation 8.0.5 (Unity 2022.1)
    The fix will be in the next version of 2D Animation for 2021.3
    • 2D Animation 7.0.9 (Unity 2021.3)
    As a bonus, these package updates also makes the weight generation quite a bit faster than previous versions. We burst compiled and multithreaded much of the weight and mesh generation pipeline. Do give them a spin when you have the chance and let us know how it works for you.

    Regarding your feedback on the triangles, what are you trying to do with the triangles?
     
    Unrighteouss likes this.
  33. Unrighteouss

    Unrighteouss

    Joined:
    Apr 24, 2018
    Posts:
    599
    This is great news! I'm gonna go check it out ASAP.

    This was just a joke haha, please ignore me.
     
    Ted_Wikman likes this.
  34. Ted_Wikman

    Ted_Wikman

    Unity Technologies

    Joined:
    Oct 7, 2019
    Posts:
    876
    Haha I see! Happy that the triangles are working then :D
     
  35. Leo-Yaik

    Leo-Yaik

    Unity Technologies

    Joined:
    Aug 13, 2014
    Posts:
    434
    And a sunshine generator. Will see what I can do about it :p
     
    Unrighteouss likes this.