Skip to content

Instantly share code, notes, and snippets.

@frideal
frideal / EditorWindowExample.cs
Created July 5, 2017 05:43 — forked from AngryAnt/EditorWindowExample.cs
EditorWindowExample from the Unity Asia Bootcamp 12 talk "Streamlining your Unity editor". A simple node based editor.
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
public class EditorWindowExample : EditorWindow
{
List<Node> nodes = new List<Node> ();
@frideal
frideal / MoveComponentContext.cs
Created July 5, 2017 05:44 — forked from AngryAnt/MoveComponentContext.cs
Adds "Move to Top" and "Move to Bottom" items to the inspector context menu of components.
using UnityEngine;
using UnityEditor;
public class MoveComponentContext
{
enum Destination
{
Top,
Bottom