GetCell

GetCell(Collider2D)

public static Cell GetCell(this Collider2D collider) ;

Description

Get Cell.

Parameters

Parameter Name Description
collider Collider 2D to acquire Cell

Returns

Cell found. If there is none, it returns null.

Remarks

If Is Combine of Tile Collider setting is true, null is returned because Cell and Collider2D can not be associated.