Published
- 1 min read
unity if in editor
The solution for this is noted below
unity if in editor
Solution
#if UNITY_EDITOR
// Here put your code, it will not be compiled in the builds so you're safe to use editor libraries
#endif
Try other methods by searching on the site. That is if this doesn’t work