Skip to content
Snippets Groups Projects
DisableObjectOutsideEditor.cs 267 B
Newer Older
using UnityEngine;

public class DisableObjectOutsideEditor : MonoBehaviour
{
    // Start is called before the first frame update
    void Awake()
    {
       // #if !UNITY_EDITOR
            this.gameObject.SetActive(false);
       // #endif
    }

}