Skip to content

Instantly share code, notes, and snippets.

View unitycoder's full-sized avatar
✅
‏‏‎

mika unitycoder

✅
‏‏‎
View GitHub Profile
@unitycoder
unitycoder / Visual Studio 2026 : My Settings.md
Created November 1, 2026 20:44
Visual Studio 2026 : My Settings
  • Enable brace pair colorization
@unitycoder
unitycoder / how to install winget.exe on Windows 10.md
Created October 26, 2026 17:52
how to install winget.exe on Windows 10
@unitycoder
unitycoder / RoundFBXAnimationEventsToFrame.cs
Created October 24, 2026 18:53
AssetPostprocessor script that rounds the animation events of clips imported from fbx to the nearest frame
using UnityEngine;
using UnityEditor;
public class RoundFBXAnimationEventsToFrame : AssetPostprocessor
{
// Unity recommends incrementing this version number when the postprocessor's code/behavior is changed
static readonly uint k_Version = 0;
public override uint GetVersion() => k_Version;
void OnPostprocessAnimation(GameObject root, AnimationClip clip)
@unitycoder
unitycoder / CompactProjectWindow.cs
Created October 20, 2026 21:17
Unity 7000 Alpha Project Window Row Height Fixer
// unity added mega-padding/margins to project window items.. can adjust them with this script.
using System;
using System.Collections.Generic;
using System.Reflection;
using UnityEditor;
using UnityEngine;
[InitializeOnLoad]
internal static class CompactProjectWindowRows
@unitycoder
unitycoder / Arvostelu: Lounea Valokuitu (Review).md
Created October 16, 2026 18:49
Arvostelu: Lounea Valokuitu (Review)

Arvostelu: Lounea Valokuitu (Review)

Hyvä nopeus, MUTTA heillä on netti täysin poikki jopa 11h kuukaudessa!!! Muka viikottainen ja kuukausittainen huoltotauko, mutta eipä kenelläkään muulla netin tarvoajalla ole semmoisia taukoja. Täysin mahdoton yhtälö, jos pitäisi kotoa töitä tehdä.

@unitycoder
unitycoder / ChatGPTCodeReceiver.cs
Last active October 15, 2026 18:50
1 Click Solution to Copy Scripts from ChatGPT Code Blocks into Unity Editor + GreaseMonkey UserScript
// Editor tool to receive code snippets from ChatGPT and save them as C# scripts in the Unity project.
// You need to install GreaseMonkey or Tampermonkey in your browser and use the following userscript
// Note: Enable Run in Background in Unity Editor: Player Settings > Resolution and Presentation > Run In Background
using System;
using System.Collections.Concurrent;
using System.IO;
using System.Net;
using System.Net.WebSockets;
using System.Text;
@unitycoder
unitycoder / Gists.js
Created October 9, 2026 06:16
[GreaseMonkey] Fix Github Gist Search (search my own gists easily)
// ==UserScript==
// @name Search My Gists
// @namespace https://unitycoder.com/
// @version 09.10.2026
// @description Automatically add the logged-in username to Gist searches.
// @match https://gist.github.com/*
// @run-at document-idle
// @grant none
// ==/UserScript==
@unitycoder
unitycoder / AddUV
Created September 26, 2026 14:14 — forked from innocuo/AddUV
How to create a rigged humanoid character using Clayxels and Puppet3D.
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
public class AddUV : MonoBehaviour
{
public Mesh mesh;
void Awake()
@unitycoder
unitycoder / Varoitus Cheap Energy Finland.md
Created September 14, 2026 19:57
Varoitus Cheap Energy Finland

Varoitus Cheap Energy Finland

Älä osta täältä spot sähkösopimusta!

@unitycoder
unitycoder / Hunyuan3DEditor.cs
Created September 12, 2026 15:25
Unity Editor script to generate models in locally running Hunyuan3D
// first run the launcher and texturing mode enabled.
// https://github.com/YanWenKun/Hunyuan3D-2-WinPortable
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;