Skip to content

Instantly share code, notes, and snippets.

@anchan828
Created June 24, 2012 11:05
Show Gist options
  • Save anchan828/2982832 to your computer and use it in GitHub Desktop.
Save anchan828/2982832 to your computer and use it in GitHub Desktop.
using UnityEngine;
using UnityEditor;
public class Delay : Editor
{
[MenuItem("EditorApplication/StartDelayCall")]
static void StartDelay ()
{
EditorApplication.delayCall += CallMethod;
Debug.Log (EditorApplication.timeSinceStartup);
}
static void CallMethod ()
{
Debug.Log (EditorApplication.timeSinceStartup);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment