Skip to content

Instantly share code, notes, and snippets.

View Pholith's full-sized avatar

Pholith Pholith

View GitHub Profile
using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.AI;
@Marsgames
Marsgames / 01_DrawableDictionaries.MD
Last active May 10, 2024 00:02
Unity scripts to show dictionaries in the inspector

Dictionaries shown in inspector

Render


  • Put DictionaryDrawer.cs into your Assets/Editor folder

  • Put SerializableDictionary.cs into your Scripts folder

  • Create a custom dictionary

[Serializable] public class CustomDictionary : SerializableDictionary { } 
@StevenACoffman
StevenACoffman / Homoglyphs.md
Last active April 21, 2025 07:13
Unicode Look-alikes

Unicode Character Look-Alikes

Original Letter Look-Alike(s)
a а ạ ą ä à á ą
c с ƈ ċ
d ԁ ɗ
e е ẹ ė é è
g ġ
h һ
@krzys-h
krzys-h / SaveRenderTextureToFile.cs
Last active December 26, 2024 08:44
[Unity] Save RenderTexture to image file
using UnityEngine;
using UnityEditor;
public class SaveRenderTextureToFile {
[MenuItem("Assets/Save RenderTexture to file")]
public static void SaveRTToFile()
{
RenderTexture rt = Selection.activeObject as RenderTexture;
RenderTexture.active = rt;
@trandaison
trandaison / starUML.md
Last active April 17, 2025 00:40
Get full version of StarUML
@MattRix
MattRix / UnityEditorIcons.txt
Last active April 20, 2025 12:53
A list of all the built-in EdtiorGUI icons in Unity. Use EditorGUIUtility.IconContent([icon name]) to access them.
ScriptableObject Icon
_Popup
_Help
Clipboard
SocialNetworks.UDNOpen
SocialNetworks.Tweet
SocialNetworks.FacebookShare
SocialNetworks.LinkedInShare
SocialNetworks.UDNLogo
animationvisibilitytoggleoff