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

Entities disappear from scene view

Discussion in 'Scripting' started by howaboutno000, Dec 6, 2020.

  1. howaboutno000

    howaboutno000

    Joined:
    Nov 13, 2020
    Posts:
    20
    When I rotate camera I noticed that cubes disappear even though they should easily fit in the view (I see them disappear after all).

    Here's screenshot in optimal position:
    normal.png
    Here's just a slight turn to the right (look on left):
    1.png
    Here's even a greater turn (left side shouldn't be empty, right side is normal):
    2.png

    It gives me impression of clipping. If you fall outside of focus. I tried creating regular cube and zooming in on it (using F) to reset the focus but that didn't improve anything.

    On side topic. How do I debug an Entity? I know there's Entity Debugger but what if I want to select a single Entity that I see in scene? I don't know which of 10.000 in the list, but I can hover over it. I know there are assets for this, but I'd rather start primitive and craft it myself.
     
  2. SparrowGS

    SparrowGS

    Joined:
    Apr 6, 2017
    Posts:
    2,536
    Did you bake occlusion culling data and change the world after? could be calculating occlusion based on "ghost" data
    had that happen to me once.

    maybe tell us about what other than floating cubes disappearing is happening in the project/scene?
     
  3. howaboutno000

    howaboutno000

    Joined:
    Nov 13, 2020
    Posts:
    20
    What is "Occlusion culling data". I disabled special lightning, tweaking Scene Camera settings (incl. occlusion), toggling gizmos with "occlusion" in it doesn't fix it either. Where do I look for that setting?


    Until I press a button, nothing. There is some web connectivity and that's about it.
     
  4. SparrowGS

    SparrowGS

    Joined:
    Apr 6, 2017
    Posts:
    2,536
    Window -> Rendering -> Occlusion Culling
    check to see if it says "no baked data" on the bottom, if not clear it.
    but if you don't know what i'm talking about i doubt it.

    When you press the button, what happens in the scene(besides the cubes disappearing)? what scripts are active? what are they doing?
    what web connectivity are you talking about?
     
  5. howaboutno000

    howaboutno000

    Joined:
    Nov 13, 2020
    Posts:
    20
    Entities are spawned before I press the button. I made sure that literally nothing happens when I press the button. It had some functionality, but I made it return before anything happens. The project is still fairly small, this is the only invoking button.

    Occlusion Culling was unbaked.

    For other items. There's a database of assets which now does nothing and there's Unity script which sets anti-aliasing and sets listener for the button (which is commented out). Nothing beyond that.

    I did create an empty project and everything worked proper there. There's something in my project, but I don't know where.
     
    Last edited: Dec 7, 2020