Game Development Reference
In-Depth Information
15. From the preceding screenshot, we will see that there are too many vertices for
this sprite. So, we need to decrease and adjust the vertices to match the sprite.
Tip
Removing the vertex in Polygon Collider 2D means decreasing the time to calcu-
late unnecessary vertices' data, which will also help to speed up the performance
in the runtime.
16. Next, we will adjust the vertices in Polygon Collider 2D . To make it easy to ad-
just, we will go to Platform_2 Inspector and click on the arrow in front of
Sprite Renderer to hide the 2D outline gizmos, as shown in the following
screenshot:
17. Now, we will remove the vertices in Collider Info from 50 to 7 , which will op-
timize the content and help the overall performance in the scene. We can do this
by pressing Ctrl (on Windows) or command (on Mac) . We will see the red dot.
We can now click on the vertex to remove the vertices from 50 to 7 , similar to
the following screenshot:
Search WWH ::




Custom Search