using UnityEditor;
using UnityEngine;

namespace EscapeRoomEngine.Engine.Runtime.Utilities
{
    /// <summary>
    /// This component disables a certain game object from being selectable in the scene view.
    /// </summary>
    public class DisablePicking : MonoBehaviour
    {
        public GameObject objectToDisable;
        
        private void Start()
        {
            #if UNITY_EDITOR
                        SceneVisibilityManager.instance.DisablePicking(objectToDisable, true);
            #endif
        }
    }
}