Automatically converts texture files from Unity to Hammer VTF on import.
Requires VTFCmd.exe, the source for which can be found here.
When a Texture2D file gets imported into a vtfexport
folder it gets automatically sent to an hl2/materials/
folder
found in your install of Source SDK 2013 Singleplayer. You can also change it to search for Half-Life 2 or any other Source game,
just change the game name at
// name has to match the steamapps/common folder name.
if (!TryGetGame("Source SDK Base 2013 Singleplayer"))
{
Debug.LogError("Could not find Source SDK Base 2013.");
return;
}