ドキュメント

Unity Engine

Unity Engine

TilemapCollider2D

Collider for 2D physics representing shapes defined by the corresponding Tilemap.
読み終わるまでの所要時間 10 分最終更新 1ヶ月前

Definition

[RequireComponent(typeof(Tilemap))]public sealed class TilemapCollider2D : Collider2D

Remarks

Properties

Property

Description

extrusionFactorThe amount of Collider shapes each Tile extrudes to facilitate compositing with neighboring Tiles. This eliminates fine gaps between Tiles when using a CompositeCollider2D. This is calculated in Unity units within world space.
hasTilemapChangesReturns true if there are Tilemap changes that require processing for Collider updates. Returns false otherwise.
maximumTileChangeCountMaximum number of Tile Changes accumulated before doing a full collider rebuild instead of an incremental rebuild.
useDelaunayMeshWhen the value is true, the Collider uses an additional Delaunay triangulation step to produce the Collider mesh. When the value is false, this additional step does not occur.

Methods

Method

Description

ProcessTilemapChangesProcesses Tilemap changes for Collider updates immediately, if there are any.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.