#if UNITY_EDITOR

Added '#if UNITY_EDITOR' to all the scripts that should only run/be used in the editor.
This commit is contained in:
max
2019-05-04 13:29:02 +02:00
parent 7990f987dc
commit 78e4fb0ad1
19 changed files with 63 additions and 25 deletions

View File

@ -1,6 +1,7 @@
//Maxartz15
//Version 1.0
#if UNITY_EDITOR
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
@ -58,4 +59,5 @@ namespace MA_Editor.Grid
Handles.EndGUI();
}
}
}
}
#endif

View File

@ -1,6 +1,7 @@
//Maxartz15
//Version 1.0
#if UNITY_EDITOR
using UnityEngine;
using MA_Editor;
@ -67,4 +68,5 @@ namespace MA_Editor.RectUtils
return multipliedRect;
}
}
}
}
#endif

View File

@ -1,6 +1,7 @@
//Maxartz15
//Version 1.0
#if UNITY_EDITOR
using UnityEngine;
using MA_Editor;
using MA_Editor.RectUtils;
@ -36,4 +37,5 @@ namespace MA_Editor.GUILayoutZoom
GUI.BeginGroup(new Rect(0.0f, EditorWindowTabHeight, Screen.width, Screen.height));
}
}
}
}
#endif