Unity If in Editor

#if UNITY_EDITOR
// Here put your code, it will not be compiled in the builds so you're safe to use editor libraries
#endif
Kaldrin