Skip to content

Instantly share code, notes, and snippets.

View Pholith's full-sized avatar

Pholith Pholith

View GitHub Profile
@Pholith
Pholith / UnityRegeditCacheHelper.cs
Created March 25, 2025 13:41
Unity Regedit Cache Helper
using System.Diagnostics;
using UnityEngine;
using UnityEngine.UIElements;
#if UNITY_EDITOR
using UnityEditor;
public class UnityRegeditCacheHelper : EditorWindow
{
[MenuItem("Tools/Unity Regedit Cache Helper")]
public static void ShowMyEditor()
@Pholith
Pholith / DiscordMultipleInstance.cmd
Created April 11, 2024 10:51
Little batch file that able to launch 2 (or more) instances of discord at the same time
@echo off
echo  Launching discord... 
cd %appdata%
cd ../Local/Discord/app-*
start Discord.exe --multi-instance
@Pholith
Pholith / RenderTextureRaycaster.cs
Last active October 10, 2023 15:42
Component to pass Input event like PointerEnter to object displayed throught a RenderTexture
using System.Collections.Generic;
using System.Linq;
using Unity.VisualScripting;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
/// <summary>
/// Add this component to send input event on physical object rendered on a render texture that is showed on the GUI as a rawImage.
/// This component should be put on the main camera object.