Search Unity

Visualize my meshs vertices

Discussion in 'Scripting' started by CodeingChris, May 11, 2019.

  1. CodeingChris

    CodeingChris

    Joined:
    Mar 31, 2018
    Posts:
    25
    I'm currently making a mesh that I dont know if the triangles are being made correctly, so I was wondering how of it's possible to view the created vertices?

    thanks.
     
  2. GroZZleR

    GroZZleR

    Joined:
    Feb 1, 2015
    Posts:
    3,201
    In scene view, there's a dropdown that defaults to "Shaded". You can click that to change to a wireframe view. You can also enable "Selection Wire" in your gizmos to see a wireframe of selected objects: https://docs.unity3d.com/Manual/GizmosMenu.html
     
  3. CodeingChris

    CodeingChris

    Joined:
    Mar 31, 2018
    Posts:
    25
    thats not quite what im looking for, the thing is I dont have the vertices connected and I want to view the verts positions, the wireframe only shows you the connecting lines from vert to vert.
     
  4. DryerLint

    DryerLint

    Joined:
    Feb 7, 2016
    Posts:
    68
    You need to use a point rendering shader, which uses a geometry pass that produces tiny point-sized billboards at every vertex.

    Have a look at this: https://github.com/keijiro/Pcx