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

Utilities Definitive Mesh Inspector

Discussion in 'Tools In Progress' started by ayellowpaper, May 3, 2021.

  1. ayellowpaper

    ayellowpaper

    Joined:
    Dec 8, 2013
    Posts:
    49
    Hey,

    I've been working on an actual mesh inspector, to help developers view, anaylze and debug assets within the Unity Editor while offering you a beautiful viewport. I often wished to see the UVs for a mesh, or the number meshes/submeshes in an easily ready format within the editor, so this is my attempt to solve this issue.

    Image01.png

    Image02.png



    Features right now:
    - Inspect Vertices, Normals, Tangents, Binormals and UVs
    - Have as many windows open at the same time
    - Easily double click on a mesh to open the inspector

    Features I'll be adding:
    - Preview Animations in-editor
    - View hierarchy and toggle meshes and submeshes on-off
    - Rendering Debug Modes: Vertex-color, Unlit, and possibly more
    - User can change lighting and reflection, possibly with user-defined presets

    I'm planning to release this at some point, hopefully for free.
     
    DragonCoder, CodeSmile and PutridEx like this.
  2. ayellowpaper

    ayellowpaper

    Joined:
    Dec 8, 2013
    Posts:
    49
    Finally got Handles to work in my custom viewport which is a huge step. Took me a few hours of pain and going through Unity DLLs to find out how to do it, and there is one ugly hack I'm trying to fix, but I'm fairly happy with the result!

     
  3. ayellowpaper

    ayellowpaper

    Joined:
    Dec 8, 2013
    Posts:
    49
    Inspired by Unreal, a better mesh preview with unlimited windows, nice lighting and a fully fledged inspector. You can even show BlendShapes! More to come!

     
  4. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    3,744
    Any updates on this? In case you do not plan to continue with this, could you please release it "as is" (ie github)? Thanks!
     
  5. ayellowpaper

    ayellowpaper

    Joined:
    Dec 8, 2013
    Posts:
    49
    I've decided not to pursue this anymore because of the little interest. Source code is pasted below, but beware the code is not cleaned up. Though you will probably find a lot of useful nuggets of editor code in there that took me hours to figure out. Like how to draw multiple 3D editor windows with their own scene, custom handles in those scenes, how to render UVs to a texture and more.

    https://github.com/ayellowpaper/DefiniteModelInspector
     
    CodeSmile likes this.
  6. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    3,744
    Indeed, that is the nugget i am looking for! Thanks for sharing!