Tile Material Creation Window

Author
Dean Lunz (aka Created by: X)

createdbyx@createdbyx.com

http://www.createdbyx.com/

Tile Material Creation Window

Description
Provides a tool for selecting a tile from a tile set and creating a material from that tile.

How to use

 * Download the TileMaterialCreationWindow.zip file and extract the *.unitypackage file within it.
 * Import the *.unitypackage into a new unity project
 * A new "Tools" menu should appear in the unity menu.
 * Select "Tools-Tile Mapping->Tile Material Editor"
 * Select a tile set texture.
 * Specify the tile width and height dimensions and specify a spacing value if the tiles are spaced.
 * Select one or more tiles from the tile set by left clicking and dragging a selection rectangle.
 * Specify an output folder where the material file will be placed.
 * Specify any labels you wish to attach to the material after it's created. Each label must be separated by a space.
 * Give the material a name and tweak the edges using inset. Inset shrinks the selection rectangle by a small amount to help clip off any unwanted pixels bleeding over from adjacent tiles.
 * Click the create button to create the material

Unity Package Download TileMaterialCreationWindowR2.zip Release 2 - Dec 15, 2012

[[Media:TileMaterialCreationWindow.zip]] - Dec 13, 2012



Source Code
Code for TileMaterialCreationWindow.cs ...

NOTE: The fallowing code relies on "Utilities.Helpers.DrawRect" which is provided in a separate code file which is included in the download.