Also I’m using the “recorder” (video recorder) which is intended to be used only in the editor during play mode. This cause problem an error when I’m trying to do a build (The type or namespace name ‘VideoRecorderManager’ could not be found (are you missing a using directive or an assembly reference?). Is there a best practice to use such limited component?
You can easily redirect or conditionally compile in these situations with either #if UNITY_EDITOR pre-processor directives, or using something like Application.isPlaying or similar to determine what environment the code is running in.
As @spiney199 said, you can put your code in #if UNITY_EDITOR if you have a portion of code to run only in editor. But you have more possibilities: if you want something guaranteed only be in the editor, you can put the scripts in a folder called Editor or make it part of an editor-only assembly. Depends on the surrounding code, if they have to be in the built app or they are editor-only too.