Typogenic
Typogenic copied to clipboard
`UnityEditor.TextureImporterType' does not contain a definition for `Default' in TypogenicFontWizard.cs
Importing lastest commit (https://github.com/Chman/Typogenic/commit/e7d0c4ae3128741b2e3042f4b43f41f1d7dd1f4a) into Unity 5.4.3 I get the following error:
Assets/Typogenic/Editor/TypogenicFontWizard.cs(30,68): error CS0117:
UnityEditor.TextureImporterType' does not contain a definition for Default'
Indeed, the importer types are defines as:
namespace UnityEditor
{
public enum TextureImporterType
{
Image,
Bump,
GUI,
Sprite = 8,
Cursor = 7,
Cubemap = 3,
Reflection = 3,
Cookie,
Lightmap = 6,
Advanced = 5
}
}
So I've changed line 30 to:
importer.textureType = TextureImporterType.Image;