Example #1
0
        public static void RestorePreviousPersistentTool()
        {
            var last = EditorToolContext.GetLastTool(x => x && !EditorToolUtility.IsCustomEditorTool(x.GetType()));

            if (last != null)
            {
                SetActiveTool(last);
            }
            else
            {
                SetActiveTool <MoveTool>();
            }
        }
Example #2
0
 static bool IsCustomEditorTool(EditorTool tool)
 {
     return(EditorToolUtility.IsCustomEditorTool(tool != null ? tool.GetType() : null));
 }