This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.Reflection; | |
using UnityEditor; | |
using UnityEditorInternal; | |
using UnityEngine; | |
using UnityEngine.Events; | |
[CustomPropertyDrawer(typeof(UnityEvent))] | |
public class CollapsableEventDrawer : UnityEventDrawer | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AssemblyUtility | |
{ | |
/// <summary> | |
/// Forces Unity to recompile all scripts and then refresh. | |
/// </summary> | |
public static void DirtyAllScripts() | |
{ | |
// Grab the UnityEditor assembly | |
Assembly editorAssembly = typeof(UnityEditor.Editor).Assembly; | |
// Find the type that contains the method we want |
OlderNewer