Search Unity

Question Some of my entieties get culled when point (0,0,0) is not in camera view.

Discussion in 'Entity Component System' started by Micz84, Jun 23, 2020.

  1. Micz84

    Micz84

    Joined:
    Jul 21, 2012
    Posts:
    451
    Some of my entities get culled when point 0,0,0 is not in the camera view.
    Those green are base prefab and that consist of meshfilter, mesh renderer, map tile authoring (my ECS component) and StaticOptimizeEntity. The grey are a prefab variant of this green and it only has PhysicBody (static) and PhysicsShape (Box). Why those green entities disappear?
    ezgif-2-7e4d285bf300.gif
     
  2. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,709
    I had a similar issues , ended up the render bounds was 0
     
  3. Micz84

    Micz84

    Joined:
    Jul 21, 2012
    Posts:
    451
    Thank you for pointing me in the right direction. ChunkWorldRenderBounds are set to all 0 in play mode, but when not in play mode they are OK. Any idea why? Other render bounds are ok in play mode.
     
  4. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,709
    Sorry I have no idea why this is.
     
  5. tertle

    tertle

    Joined:
    Jan 25, 2011
    Posts:
    3,761
    Are you creating these entities at runtime and not through conversion?
     
  6. Micz84

    Micz84

    Joined:
    Jul 21, 2012
    Posts:
    451
    No all of them are part of one subscene generated from prefabs in the editor. They are prefabs' clones.
     
    Last edited: Jun 24, 2020