How to make IntelliSense work with code contained in "#if !UNITY_EDITOR"

The code contained in "if !UNITY_EDITOR" is very inconvenient to develop because IntelliSense does not work.
Currently, we are temporarily removing the "!" but we sometimes forget to remove this mark.

1 comment


Open Preferences -> External Tools in Unity Editor, choose Rider as the external editor and enable Player project generation. After that, it will be possible to choose the project context in breadcrumbs.


Please sign in to leave a comment.