Search Unity

The hull has more than 255 polygons

Discussion in 'Editor & General Support' started by LaneFox, Nov 20, 2013.

  1. LaneFox

    LaneFox

    Joined:
    Jun 29, 2011
    Posts:
    7,532
    Code (csharp):
    1. The hull has more than 255 polygons. This is invalid.
    2. UnityEditor.DockArea:OnGUI()
    This is a persistent error in one of my scenes after a 4.3 update. It only seems to occur in this one scene.
     
    Vergil_ink likes this.
  2. LaneFox

    LaneFox

    Joined:
    Jun 29, 2011
    Posts:
    7,532
    no ideas?
     
  3. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,659
    You'll get this warning if you have a convex MeshCollider that's using a mesh with more than 255 polys.

    You might try un-convexing and re-convexing any affected colliders - I've found that Unity sometimes doesn't correctly rebuild convex colliders when source data changes.
     
    Vergil_ink likes this.
  4. LaneFox

    LaneFox

    Joined:
    Jun 29, 2011
    Posts:
    7,532
    That seemed to fix it, thanks!
     
  5. yashtd

    yashtd

    Joined:
    Oct 10, 2015
    Posts:
    1
    I have the same error; could this be because of a mesh renderer which is using a mesh with more than 255 polygons?
     
  6. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    No its has nothing to do with the mesh renderer but if you let unity generate a collider for your object its usually the same mesh that the meshrenderer uses.
     
  7. K0m1x

    K0m1x

    Joined:
    Aug 19, 2013
    Posts:
    30
    @UnityEngine can you please mark this as a warning and not an error I am having a hard time seeing the actual errors because of this message being spammed all over the place.
     
    prajwalshetty likes this.
  8. burnout156

    burnout156

    Joined:
    May 13, 2017
    Posts:
    3
    I mark generate colliders, and i insert mesh renderer after this