private void TextureImporterSetup( Texture2D _texture )
{
string path = AssetDatabase.GetAssetPath( _texture );
TextureImporter texImporter = AssetImporter.GetAtPath( path ) as TextureImporter;
TextureImporterSettings tis = new TextureImporterSettings();
texImporter.ReadTextureSettings(tis);
tis.readable = TextureImporterSetting._readable; // true;
tis.npotScale = TextureImporterSetting._npotScale; // TextureImporterNPOTScale.None;
tis.mipmapEnabled = TextureImporterSetting._mipmapEnabled; // false;
tis.textureFormat = TextureImporterSetting._textureFormat; // TextureImporterFormat.ARGB32;
tis.maxTextureSize = TextureImporterSetting._maxTextureSize;// 4096;
texImporter.SetTextureSettings( tis );
AssetDatabase.ImportAsset( path );
}