Are we allowed to use the namespace UnityEditor in a runtime class? Will any of the UnityEditor methods be available to us on runtime?
No you can’t. UnityEditor assembly is not loaded at runtime.
Even if you try to do it manually, this will not work as it is dependent on other parts of Unity Editor that will in turn not be available.
No, you can’t!
You can not build your game if using it at runtime.
There comes building error when you use it at runtime!