Search Unity

How to see my UV Map inside Unity

Discussion in 'Shaders' started by poa123, Oct 9, 2018.

  1. poa123

    poa123

    Joined:
    Jul 13, 2018
    Posts:
    22
    Hi guys!

    Is there any way to see the Uv Map of an object inside Unity?

    I know i can see the lightmap UV, but i want to see how the UV is unwrapped for the textures of the objects.

    Thanks a lot!
     
  2. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,705
    There is a free UV editor in asset store , some of the code is old but does the trick
     
  3. Artemcg

    Artemcg

    Joined:
    May 19, 2018
    Posts:
    2
  4. formoso01

    formoso01

    Joined:
    Jan 14, 2021
    Posts:
    1
  5. dlanfranconi

    dlanfranconi

    Joined:
    Apr 18, 2015
    Posts:
    7
    what the F*** is wrong with this engine if it doesnt even have a built in UV viewer but relies on plugins for that?
     
  6. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,705
    You can use the uv editor in proBuilder
     
  7. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    1,553
  8. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,342
    On the topic of "why doesn't Unity have a built in UV viewer?" It doesn't because it's not a mesh creation tool. You make meshes and do the UV mapping for those meshes in external tools. I've never worked with any engine that had a built in UV viewer, because other tools exist for that purpose.

    ProBuilder was a third party tool that lets you build basic level geometry meshes that Unity bought and is now part of Unity. And as you can build meshes in Unity with it, it includes a UV viewer via its UV Mapping tools. Though as far as I know you can only view / edit UVs of ProBuilder meshes, not any arbitrary mesh asset, though I could be wrong on that as I've never tried.
     
    Rowested and dlanfranconi like this.
  9. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,705
    You are correct, you have to convert to a ProBuilder mesh. For my use case I was generating procedural meshes in unity including UVs. I wasn’t confident in my uv math projection so being able to view it in unity sped up the debugging. I will say it was a pain saving the asset out and converting it to a proBuilder mesh but better than nothing.
     
  10. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,342
    It's fairly trivial to write a shader to preview UVs with too, which is what I've done in the past.
     
    RoughSpaghetti3211 likes this.
  11. MikeBastien

    MikeBastien

    Joined:
    Apr 24, 2009
    Posts:
    139
    Unreal has a built-in viewer and basic tools for UV manipulation...
     
  12. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,342
    Mainly for lightmaps, yeah. Unity has that too, as mentioned by the OP.
    upload_2021-5-7_10-13-24.png
    Though I guess Unreal's is generalized a bit so you can view other UVs than just those for lightmapping, but that's the primary reason it exists. Both are doing auto-generated UVs for lightmaps.
     
  13. Passeridae

    Passeridae

    Joined:
    Jun 16, 2019
    Posts:
    395
    Well, Unity has the UV viewer as well:
    upload_2021-5-9_16-23-4.png
    It's available in the inspector tab, if you select your mesh and choose "UV Layout"
     
  14. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,342
    Hah! I wonder how long that's been there.
     
    fffMalzbier, Emanx140 and Olmi like this.
  15. Davidlyart

    Davidlyart

    Joined:
    Jun 12, 2019
    Posts:
    1
    Hi, sorry I'm trying to bring up the UV viewer. Can you get a bit more specific please?
    Clicking on the mesh brings up the import settings in the inspector.
    Trying to make a texture scroll but its really squashed so want to see what the UVs are to figure out the problem.
    Thanks in advance
     
  16. jason_li_

    jason_li_

    Joined:
    Sep 9, 2021
    Posts:
    2
    available in 2021
    upload_2021-11-8_11-14-46.png
     
  17. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,705