TilePolygonCollider

Class in Nostalgia / Inherits from: TileCollider<UnityEngine.PolygonCollider2D>
Implements interfaces: ITileColliderCombinable

Description

Polygon type of tile collider

Fields

Field Name Description
paths Array of paths

Properties

Property Name Description
isCombine Whether to combine Collider
isSplitMapCollider Whether to split MapCollider

Methods

Method Name Description
GetPolygons Get polygons.
IsUpdateCollider Determines whether the need to update the collider

Types

Type Name Description
Path Class that stores the vertices of each path

Inherited Members

Fields

Field Name Description
isTrigger Is Trigger be set to Collider.
offset Offset in the case where the center of the tile is set to 0
physicsMaterial PhysicsMaterial2D be set to Collider.

Properties

Property Name Description
tile It is associated with tile

Methods

Method Name Description
GetRequireColliderType Get the type of request to Collider2D.
OnValidate Called when the script is loaded or the value of the Inspector changes (Editor only)
UpdateCollider To update the Collider