Tileset.GetTileSourceRect(int) Method
Definition
Namespace: Brine2D.Tilemap
Returns the source rect for a GID in the tileset texture, accounting for spacing and margin. Returns a zero rect for GID 0 or image-collection tilesets.
Parameters
tileId System.Int32