Search code examples
c#unity-game-enginecollider

How to change size of Polygon Collider 2D in uniform manner or evenly in Unity 3D


When editing polygon collider 2D, we have a option to click and drag to change each edge.

Is there any method or hotkey that enable to enlarge or small whole polygon collider 2D in one click and drag?


Solution

  • First of all if you resize your gameObject(spriterenderer) collider will automatically resize according to it. If you want to play only with collider then make an empty child of object paste component (i.e. polygon collider) as new in that child and remove from parent.