Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Anyway to Make an Object unselectable in Edit Mode

Discussion in 'Editor & General Support' started by jrhd00d, Jan 3, 2021.

  1. jrhd00d

    jrhd00d

    Joined:
    Dec 19, 2020
    Posts:
    8
    I am working on a project and one consistent issue I have while editing shapes using Probuilder is accidentally grabbing the terrain. Its extremely frustrating. Any suggestions?
     
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,722
    Yes. In the left hand margin of the Hierarchy window there is a little "hand" icon that allows you to mark a particular object as not selectable in the editor. There is also an eyeball that makes it invisible in the editor as well.

    I believe this is a new feature since 2019.3

    Documented here:

    https://docs.unity3d.com/Manual/Hierarchy.html
     
  3. WidmerNoel

    WidmerNoel

    Joined:
    Jun 3, 2014
    Posts:
    59
    You can also use the SceneVisibilityManager if you want to do it by code. Note that you need to get the singleton first like this:
    SceneVisibilityManager.instance
     
    morepixels likes this.
  4. kaancetinkayasf

    kaancetinkayasf

    Joined:
    Feb 20, 2020
    Posts:
    10
    THANK YOU!!!!!!
     
  5. WidmerNoel

    WidmerNoel

    Joined:
    Jun 3, 2014
    Posts:
    59
    After I discovered this I realized that this somehow makes the editor freeze for a split second which is super annoying.