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. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Bug Visibility toggle is absolutely broken and useless

Discussion in 'Editor & General Support' started by marcrem, Feb 22, 2023.

  1. marcrem

    marcrem

    Joined:
    Oct 13, 2016
    Posts:
    336
    Hi.

    Since ugprading to Unity 2021, toggling visibility on objects will 8 times out of 10 freeze the editor for 15 minutes.

    upload_2023-2-22_12-1-44.png

    What is this ridiculous feature?
     
  2. Homicide

    Homicide

    Joined:
    Oct 11, 2012
    Posts:
    638
    Hmm, must be something else at play as well .. i use the toggle alot and never experienced this...

    Though, that window ... 'Hold on... busy" is a disease in unity. I managed to squelch most of the life out of it by disabling auto refresh and directory monitoring. It may help you as well.

    GL.
     
  3. marcrem

    marcrem

    Joined:
    Oct 13, 2016
    Posts:
    336
    What is the purpose of these two features? Does this mean I would need to manually compile et refresh the project when I change something?
     
  4. Homicide

    Homicide

    Joined:
    Oct 11, 2012
    Posts:
    638
    Basically, you just hit ctrl + r to resresh and recompile 'when you want to', not whenever unity feels like it.
     
  5. chemicalcrux

    chemicalcrux

    Joined:
    Mar 16, 2017
    Posts:
    713
    Check if the behavior is the same...
    • ...for other objects in that scene
    • ...for other scenes
    • ...in a brand-new project
    This should help to figure out what the problem is. I could believe that there's a component that's going haywire when hidden or shown.
     
  6. marcrem

    marcrem

    Joined:
    Oct 13, 2016
    Posts:
    336
    Hi,

    Here's what we noticed in a standalone profiler when the Application.Tick is showing up:
     
  7. marcrem

    marcrem

    Joined:
    Oct 13, 2016
    Posts:
    336
    Observation: Looks like we were able to toggle visibility at will if the object we want to affect is not selected. Note that closing the inspector didn't help, and there was no components on the objects other than the built-in ones (renderer, meshfilter, etc.)
     
  8. chemicalcrux

    chemicalcrux

    Joined:
    Mar 16, 2017
    Posts:
    713
    Does this happen to all objects, or just certain kinds of objects? See if it happens to some completely empty GameObjects, for example.

    I noticed ProBuilder in there. I've been having my own weird problems with it, so I would check if it only happens if a ProBuilder object is being shown/hidden.
     
  9. marcrem

    marcrem

    Joined:
    Oct 13, 2016
    Posts:
    336
    Thanks for the help. Yeah pro builder is installed in the project but there is no pro builder objects in the scene.

    We have tried the following:

    - Empty GameObject: Working as intended.
    - Added Mesh Renderer to the object: Still no bug.
    - Assign any material to the mesh renderer: Bug happens.
    - Disable Mesh Renderer component with material assigned on it: bug still happens.

    So it seems like it's related to the mesh renderer and its material.
     
  10. marcrem

    marcrem

    Joined:
    Oct 13, 2016
    Posts:
    336
    Oh, and the object must be selected for the bug to happen. Clicking on the little eye on an object that is not selected will not cause the bug.