Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Polygon Collider Editor error

Discussion in 'Physics' started by Bagazi, Jul 19, 2019.

  1. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    148
    Polygon Collider cannot be added to a given sprite 2d Obj .. No collider area appeared when polygon Collider component added ,and without any help by reset..
    upload_2019-7-19_15-7-21.png
     
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    2,025
    You should perhaps post a little more information on what you've tried, what version etc.

    Is this the only one that does this? I can only presume this happens to all your PolygonCollider2D? I also presume you're seeing points listed in the "points" property? Are any other gizmos shown? Any other editor gizmos for 2D physics, 3D physics or others?
     
  3. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    148
  4. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    148
    I am within Unity 2019.1.9f1 ,personal version. For my case ,I need to add polygon collider2d to some unregalur object as above. Is this problem caused by the other scripts in the project,cause I can correctly add Polygon collider in another Project.Anyway, I can not find any obvious proof that my scripts could ruin the funcationality of the Polygon Collider,if it really exists,how can I check for errors?
     
  5. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    148
    When I edit the polygon collider, a green line appears,but it seems helpless .,cause it is just a single line..
     
  6. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    148
    Green line, perhaps was the gizmo,but seems wrong..
     
  7. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    148
    The same thing happens in another project again...
    upload_2019-7-19_17-5-56.png

    I just create a 2d gameObject in 3d Scene ,and modify the layer tag of the object...