/UVViewer

Displays mesh's UV in Unity editor window.

Primary LanguageC#MIT LicenseMIT

UV Viewer for Unity Editor (English translation by DancingPhoenix88)

UVViewer visualizes unwrapped UV map in Unity 5.4+.

Installation

You could use this .unitypackage or clone this project and copy UVViewer plugin assets in folder Assets/Plugins to your project. When installed, you could open the UV Viewer Window from the menu bar Window > UV Viewer.

Usage

Mesh

Just select a mesh, and it's UV will be displayed in the UV Viewer Window. If the selected object has a MeshFilter component, the mesh will be recognized too. In the UV Viewer window, there are settings for Mesh too. If you change the Mesh loading mode from Selected Object to Custom, you could load a specific mesh.

Texture

Default texture mode is None. If you change to Custom, you could load any texture and draw it below the UV map.

Dynamic mesh and texture settings

You could set custom mesh and texture from Editor script as well:

using Macaron.UVViewer.Editor;

class EditorClass
{
    void SetCustom(Mesh mesh, Texture texture)
    {
        UVViewerWindow.ShowWindow().SetCustomMesh(mesh);
        UVViewerWindow.ShowWindow().SetCustomTexture(texture);
    }
}

Notes

  1. The UV, mesh and texture is loaded once. If you change something outside of the UV Viewer Window, you'll need to click the button Reload to reflect the changes.

  2. For machines which Geometry shader is unsupported, Line Thickness and other options are disabled.