D
D
Dmitry Korolev2018-05-05 12:31:47
Unity
Dmitry Korolev, 2018-05-05 12:31:47

How to create a window from under Monobehavour?

I created a blank window from EditorWindow, but I cannot access it from the class from MonoBehavour.
how to get to window class?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2018-05-05
@adressmoeistranici

EditorWindow is an editor and it works only in it, after building the project there is no access to the UnityEditor assembly. And it serves to serve MonoBehavour components, and not vice versa. If you want to somehow influence it, then create some fields in the component, and already in the editor window you check them and change your logic.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question