Skip to content

Instantly share code, notes, and snippets.

View thebeardphantom's full-sized avatar

Mika Notarnicola thebeardphantom

View GitHub Profile
@thebeardphantom
thebeardphantom / AssemblyDefinitionCleanupPostProcessor.cs
Last active March 31, 2024 23:19
Sorts imports of an AssemblyDefinition asset in Unity.
#define POSTPROCESSOR_ENABLED
using Newtonsoft.Json.Linq;
using System;
using System.IO;
using System.Linq;
using UnityEditor;
using UnityEditorInternal;
using Debug = UnityEngine.Debug;
@thebeardphantom
thebeardphantom / BlenderImportFixesProcessor.cs
Last active November 25, 2025 11:53
An AssetPostprocessor that fixes the import rotations for .blend files, and FBX files exported by blender using default settings. If using this processor use the DEFAULT export settings in Blender!
using System;
using System.Collections.Generic;
using System.IO;
using UnityEditor;
using UnityEngine;
using UnityEngine.Pool;
public class BlenderImportFixesProcessor : AssetPostprocessor
{
private const float Epsilon = 3E-07f;