Skip to content

Instantly share code, notes, and snippets.

View bo11ox's full-sized avatar
🏴󠁧󠁢󠁳󠁣󠁴󠁿
:rage4:

Rainer Strobo bo11ox

🏴󠁧󠁢󠁳󠁣󠁴󠁿
:rage4:
  • FFM/Germany
View GitHub Profile
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Nothke.SimpleMenu;
using TMPro;
public class ExampleMenu : Menu
{
int intTest = 10;
@Invertex
Invertex / CustomHoldingInteraction.cs
Last active January 17, 2025 02:57
Unity New Input System custom Hold "Interaction" where the .performed callback is constantly triggered while input is held.
using UnityEngine;
using UnityEngine.InputSystem;
//!!>> This script should NOT be placed in an "Editor" folder. Ideally placed in a "Plugins" folder.
namespace Invertex.UnityInputExtensions.Interactions
{
//https://gist.github.com/Invertex
/// <summary>
/// Custom Hold interaction for New Input System.
/// With this, the .performed callback will be called everytime the Input System updates.
@unitycoder
unitycoder / launch-process.cs
Last active February 9, 2022 17:33
start launch executable with parameters process
var path = Path.Combine(path, exe);
ProcessStartInfo startInfo = new ProcessStartInfo(path);
startInfo.Arguments ="";
startInfo.UseShellExecute = false;
System.Diagnostics.Process.Start(startInfo);
// launch hidden or minimized
var path = Path.Combine(path, exe);
ProcessStartInfo startInfo = new ProcessStartInfo(path);
startInfo.Arguments ="";
// i copied and pasted these functions from the sticker sheet
// As t runs from 0 to 1 (our normalized palette index or domain),
//the cosine oscilates c times with a phase of d.
//The result is scaled and biased by a and b to meet the desired constrast and brightness.
// http://www.iquilezles.org/www/articles/palettes/palettes.htm
// to see this function graphed out go to: https://www.desmos.com/calculator/rz7abjujdj
vec3 cosPalette( float t , vec3 brightness, vec3 contrast, vec3 osc, vec3 phase)
{
@dinukapj
dinukapj / Goaper.cs
Last active July 4, 2021 17:47
Goal Oriented Action Planning. Simple implementation of GOAP in Unity 3D
using System.Collections.Generic;
using UnityEngine;
using Sirenix.OdinInspector;
using System;
public class Goaper : MonoBehaviour
{
[TitleGroup("Parameters")]
[OnValueChanged("OnParameterChanged")]
public List<Parameter> parameters = new List<Parameter>();
@Jaykul
Jaykul / A retro look.md
Last active October 7, 2021 02:15
Retro Terminal

I borrowed crt.hlsl from Hammster although I've tweaked it a little.

You need a terminal profile with something like this in it:

{
    // This is the shader and a background with the monitor in it, because that's easy
    "experimental.pixelShaderPath": "C:\\Users\\Jaykul\\crt.hlsl",
    "backgroundImage": "C:\\Users\\Jaykul\\crt.png",
 "backgroundImageAlignment": "center",
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
}
#Import-Module PSColors
#Import-Module posh-git
Import-Module -Name Terminal-Icons
@tylertomaseski
tylertomaseski / ServerFileExplorer.cs
Created February 9, 2021 22:53
A simple server file explorer for Unisave and OdinInspector
using Sirenix.OdinInspector;
using Sirenix.OdinInspector.Editor;
using Sirenix.Utilities.Editor;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEditor;
using UnityEngine;
public class ServerFileExplorer : OdinMenuEditorWindow
@yasirkula
yasirkula / DuplicateAssetDetector.cs
Last active April 21, 2025 12:36
Find duplicate assets in Unity
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Reflection;
using System.Security.Cryptography;
using UnityEditor;
using UnityEditor.IMGUI.Controls;
using UnityEngine;
using Object = UnityEngine.Object;
# A script for single [double] click uploading to itch using butler
# by Nothke
#
# Requirements:
# - Installed butler: https://itch.io/docs/butler/
# - butler added to PATH
#
# How to use:
# 1. Put this script in your project folder,
# 2. Edit the script by adding project names and ignores below