Skip to content

Instantly share code, notes, and snippets.

View nomnomab's full-sized avatar
🛠️
Making mods and Project Ictos

Andrew Burke nomnomab

🛠️
Making mods and Project Ictos
View GitHub Profile
@jamiephan
jamiephan / README.md
Last active November 10, 2024 11:58
A script to automatically add ALL items to your account in quixel

Script to add all items from quixel

As quixel is being removed, all items are free to aquire. This script is to automate the process to add items to your account (As of writing, a total of 18874 items)

Note: This script only tested in the latest version of Chrome.

How to use

  1. Copy the script from below (run.js)
  2. Login into https://quixel.com
@nomnomab
nomnomab / Plugin.cs
Created January 9, 2024 16:50
Adds an unlit mode to Lethal Company's cameras
// it didn't add the object properly in Awake, so I put it in OnDestroy instead
// as the plugin object is destroyed when loading is done
private void OnDestroy() {
var unlitHandler = new GameObject("UnlitModeHandler").AddComponent<UnlitModeHandler>();
DontDestroyOnLoad(unlitHandler);
}
@passivestar
passivestar / Editor.tres
Last active October 23, 2024 19:30
Godot editor theme
[gd_resource type="Theme" load_steps=12 format=3 uid="uid://7bvxnk5n5imx"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_6h42l"]
content_margin_left = 10.5
content_margin_top = 8.75
content_margin_right = 10.5
content_margin_bottom = 8.75
bg_color = Color(0.117647, 0.117647, 0.117647, 1)
draw_center = false
border_color = Color(1, 1, 1, 0.137255)
@neoRiley
neoRiley / AspectRatioButton.cs
Last active October 4, 2024 00:37
Extends VisualElement and provides the ability to maintain an aspect ratio as well as add a Label who's font size is scaled with the AspectRatioPanel
using System;
using System.Collections.Generic;
using UniRx;
using UnityEngine;
using UnityEngine.UIElements;
namespace N30R1L37
{
[UnityEngine.Scripting.Preserve]
@alexanderameye
alexanderameye / CircularMenu.cs
Last active October 31, 2024 11:55
Circular menu for the Unity Editor
/*
MIT License
Copyright (c) [year] [fullname]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@techgeek1
techgeek1 / techgeek1-links.md
Last active September 5, 2024 01:32
Resources for game and engine dev I've found while building Eden
@elringus
elringus / FileWatcher.cs
Last active November 1, 2024 05:53
Allows executing an editor behaviour in response to file modificatons, even when editor application is not in focus.
using System;
using System.Collections.Concurrent;
using System.IO;
using System.Threading.Tasks;
using UnityEditor;
using UnityEditorInternal;
using UnityEngine;
/// <summary>
/// Uses file system watcher to track changes to specific files in the project directory.
@nomnomab
nomnomab / PackedConvert.cs
Last active October 2, 2021 22:34
Handles converting between 1D, 2D, and 3D indexes
public readonly struct BitData {
public readonly int Size;
public readonly int BitSize;
public readonly int BitSizePow2;
public readonly int BitMask;
public BitData(uint size) {
BitSize = (int)Mathf.Sqrt(size);
Size = 1 << BitSize;
BitSizePow2 = BitSize * 2;
@monry
monry / SerializedPropertyExtensions.cs
Created August 21, 2020 15:54
Find parent SerializedProperty
using System.Linq;
using System.Text.RegularExpressions;
using UnityEditor;
namespace Monry
{
public static class SerializedPropertyExtensions
{
public static SerializedProperty FindParentProperty(this SerializedProperty serializedProperty)
{
using UnityEngine;
using UnityEngine.LowLevel;
using UnityEngine.PlayerLoop;
public static class AddPlayerLoopCallback
{
// Add a callback to the PreUpdate phase
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
static void Setup()
{