Skip to content

Instantly share code, notes, and snippets.

@ffyhlkain
ffyhlkain / ReferenceFinder.cs
Last active July 14, 2024 14:55
A reference finder for assets in a #Unity3d project.
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using UnityEditor;
using UnityEngine;
using Debug = UnityEngine.Debug;
using Object = UnityEngine.Object;
namespace FoundationEditor.Editor.ReferenceFinder
{
@SimianLogic
SimianLogic / BaseModel.cs
Last active March 20, 2018 07:15
Use Google Spreadsheets as a CMS for Your Unity Game
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
public abstract class BaseModel<T> where T : BaseModel<T>
{
private static bool SHOW_DEBUGGING_MESSAGES = false;
@FreyaHolmer
FreyaHolmer / ScriptableObjectSpawner.cs
Last active January 8, 2020 06:51
ScriptableObject asset spawner for Unity
// Adds a menu item for easy creation of your ScriptableObject types
// Usage: Right click in project view -> Create -> ScriptableObject... -> Select your type
// It will land in the root of your assets folder with the same name as your class
// Freya Holmér - webmaster@acegikmo.com
using UnityEngine;
using UnityEditor;
using System.Reflection;
using System.Linq;
using System.IO;
//#define DEBUG_THREADING
using UnityEngine;
using System.Collections;
using System.Threading;
using System.Reflection;
public delegate IEnumerator MonitorCoroutine<T> (CoroutineData<T> data);
@col000r
col000r / DrawLineAATest.cs
Created May 13, 2014 13:23
A translation of the code found on wikipedia to C# for use in the unity editor. (I used this to draw lines on a texture, then saved the texture as a PNG...)
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
public class DrawLineAATest : EditorWindow {
private Texture2D tex;
//http://en.wikipedia.org/wiki/Xiaolin_Wu's_line_algorithm
@benblo
benblo / EditorCoroutine.cs
Created April 15, 2014 13:26
EditorCoroutine: coroutines for Unity editor operations. Usage: EditorCoroutine.start(myIEnumerator)
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
using Object = UnityEngine.Object;
namespace Swing.Editor
{
public class EditorCoroutine