Enhanced Texture Previewer for Unity
Currently Unity 2018.3+
- RGB Toggles (CTRL+CLICK for Single-Channel)
- Zooming & Panning
- Zoom Resets
- Matching Filter Mode (default preview is always Point-filtered)
- Normal Map Diffuse Preview (Right-Mouse, Right-Mouse+Scroll)
- Colour Picking (Hold Right-Mouse, Left-Click during to copy as hex. Double-Click to copy as code. CTRL-C and CTRL-SHIFT-C whilst picking are analogous)
- Continuous Repaint button
- Sprite pinging for sliced sprites (double-click)
- Cube preview (default was sphere)
- XYZ Axis Preview Sliders
You can override the Material used for the 3D Texture Preview. This is done by inheriting from N3DTexturePreview.I3DMaterialOverride.
An example is provided at NTexturePreview/Examples/Custom 3D/Editor/N3DTexturePreviewExample.cs. The file specifically operates on Texture3D assets named "3DTexturePreviewExample", but a method of your own might perform any logic to provide a custom preview material.
Ensure your project is on .NET 4.x by navigating to Edit>Project Settings>Player>Configuration>Scripting Runtime Version and switching to .NET 4.x Equivalent.
Edit your manifest.json
file to contain:
"com.vertx.ntexturepreview": "https://github.com/vertxxyz/NTexturePreview.git",
Or pull the project locally and use the Package Manager (Window>Package Manager), adding the package.json file present in the root of the folder with the +
button.