Skip to content

Instantly share code, notes, and snippets.

View Taiga74164's full-sized avatar
😭

Joaquin Taiga74164

😭
  • Canada
  • 13:30 (UTC -06:00)
View GitHub Profile
@AmbientLion
AmbientLion / animatorControllerEditorWindow.cs
Last active November 9, 2024 09:47
Unity EditorWindow - Copying Parameters Between AnimatorController Assets.
/// Author: AmbientLion@github
/// Purpose: This is an Odin-based (https://odininspector.com) editor tool window that simplifies
/// the work for copying AnimatorController parameters from one controller to another.
using System;
using System.Collections.Generic;
using System.Linq;
using Sirenix.OdinInspector;
using Sirenix.OdinInspector.Editor;
using UnityEditor;
@mrexodia
mrexodia / LowUtilities.cpp
Last active September 20, 2023 08:09 — forked from D4stiny/LowUtilities.cpp
A dependency-less implementation of GetModuleHandle and GetProcAddress.
//
// An implementation of GetModuleHandle and GetProcAddress that works with manually mapped modules, forwarded exports,
// without a CRT standard library, and uses no Windows API or dependencies.
//
// Author: Bill Demirkapi
// License: MIT, appended at the bottom of this document if you care about licensing and want to credit me in your own project.
//
#include <Windows.h>
#include <winternl.h>
using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.AI;
@FreyaHolmer
FreyaHolmer / FlyCamera.cs
Last active April 24, 2025 21:16
A camera controller for easily flying around a scene in Unity smoothly. WASD for lateral movement, Space & Ctrl for vertical movement, Shift to move faster. Add this script to an existing camera, or an empty game object, hit play, and you're ready to go~
using UnityEngine;
[RequireComponent( typeof(Camera) )]
public class FlyCamera : MonoBehaviour {
public float acceleration = 50; // how fast you accelerate
public float accSprintMultiplier = 4; // how much faster you go when "sprinting"
public float lookSensitivity = 1; // mouse look sensitivity
public float dampingCoefficient = 5; // how quickly you break to a halt after you stop your input
public bool focusOnEnable = true; // whether or not to focus and lock cursor immediately on enable
@lordlycastle
lordlycastle / ColorPicker.cs
Last active November 9, 2024 09:45
A simple color picker window for Unity. Requires Odin.
using Sirenix.OdinInspector;
using Sirenix.OdinInspector.Editor;
using UnityEditor;
using UnityEngine;
public class ColorPicker : OdinEditorWindow
{
#region Windows Stuff
private static ColorPicker _instance;
@marcan
marcan / gamma_trick.sh
Last active April 19, 2025 15:39
Two images in one using the PNG gamma header trick.
#!/bin/sh
# PNG Gamma trick (by @marcan42 / [email protected])
#
# This script implements an improved version of the gamma trick used to make
# thumbnail images on reddit/4chan look different from the full-size image.
#
# Sample output (SFW; images by @Miluda):
# https://mrcn.st/t/homura_gamma_trick.png
# https://www.reddit.com/r/test/comments/6edthw/ (click for fullsize)
# https://twitter.com/marcan42/status/869855956842143744