Skip to content

RichardHoffmannX/UnityCheckIsEditorExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

UnityCheckIsEditorExample

Unity Check IsEditor Example script

using UnityEngine;

public class CheckIsEditor : MonoBehaviour
{
    public bool isEditor = false;
    public bool unityEditor = false;

    // Start is called once before the first execution of Update after the MonoBehaviour is created
    void Start()
    {
        if (Application.isEditor)
        {
            isEditor = true;
        }
        else
        {
            isEditor = false;
        }
#if UNITY_EDITOR
        unityEditor = true;
#else
        unityEditor = false;
#endif
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}

About

Unity Check IsEditor Example script

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages