D
D
Dmitry Korolev2018-07-18 16:32:18
Unity
Dmitry Korolev, 2018-07-18 16:32:18

How to compile when there are editor scripts in the project?

When trying to compile, errors caused by editor scripts occur. how to avoid errors without removing editors from the project?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Gaydak, 2018-07-18
@adressmoeistranici

All editor scripts (which use the UnityEditor namespace) should simply be placed in a folder called Editor.
Scripts in this folder - do not go to the assembly.
and in the manual for Editor Scripts, by the way, this is mentioned.
https://docs.unity3d.com/Manual/SpecialFolders.html
add here. read about SPECIAL folders)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question