unity detect if version is a build or in editor code example
Example: unity detect if version is a build or in editor
// Read only, boolean, checks if running in editor or not
Application.isEditor
// Read only, boolean, checks if running in editor or not
Application.isEditor