Skip to content

Instantly share code, notes, and snippets.

View WikkidEdd's full-sized avatar

Edd Smith WikkidEdd

View GitHub Profile
@aras-p
aras-p / ExportDDS.cs
Last active March 27, 2025 23:50
Unity DDS file exporter for compressed textures
// Adds context menu to TextureImporter objects, saves .dds next to input texture, including mipmaps.
// Tested with Unity 2021.3.4
using System;
using UnityEngine;
using UnityEditor;
using System.IO;
using Unity.Collections.LowLevel.Unsafe;
struct DDSHeader