PutTile

PutTile(Vector2Int, Tile, ushort, Vector2Int, bool, bool, bool)

public bool PutTile(Vector2Int pos, Tile tile, ushort partsID, Vector2Int tilePos, bool autoTiling, bool changeParts, bool isCreateCellObject) ;

Description

Puts the tile.

Parameters

Parameter Name Description
pos Position.
tile Tile.
partsID Parts ID.
tilePos Tile Position
autoTiling If set to true auto tiling.
changeParts If set to true change parts.
isCreateCellObject Whether you want to create a CellObject

Returns

true,if tile was put,falseotherwise.