UnityEditor.TextureImporter.SetTextureSettings C# (CSharp) Method

SetTextureSettings() private method

private SetTextureSettings ( TextureImporterSettings src ) : void
src TextureImporterSettings
return void
        public extern void SetTextureSettings(TextureImporterSettings src);

Usage Example

コード例 #1
1
	// Texture processing End
	public static void TextureProcessingEnd(TextureImporter a_rTextureImporter, TextureImporterSettings a_rTextureImporterSettings)
	{
		if(a_rTextureImporter != null)
		{
			a_rTextureImporter.SetTextureSettings(a_rTextureImporterSettings);
			
			if(AssetDatabase.WriteImportSettingsIfDirty(a_rTextureImporter.assetPath))
			{
				AssetDatabase.ImportAsset(a_rTextureImporter.assetPath, ImportAssetOptions.ForceSynchronousImport );
				AssetDatabase.Refresh();
			}
		}

		Uni2DAssetPostprocessor.Enabled = true;
	}
All Usage Examples Of UnityEditor.TextureImporter::SetTextureSettings