Skip to content

Displays mesh's UV in Unity editor window.

License

Notifications You must be signed in to change notification settings

DancingPhoenix88/UVViewer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Displays mesh's UV in Unity editor window.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 92.0%
  • ShaderLab 8.0%