TileSet
Tile library for tilemaps.
Tile library for tilemaps.
A TileSet is a library of tiles for a TileMapLayer. A TileSet handles a list of TileSetSource, each of them storing a set of tiles.
Tiles can either be from a TileSetAtlasSource, which renders tiles out of a texture with support for physics, navigation, etc., or from a TileSetScenesCollectionSource, which exposes scene-based tiles.
Tiles are referenced by using three IDs: their source ID, their atlas coordinates ID, and their alternative tile ID.
A TileSet can be configured so that its tiles expose more or fewer properties. To do so, the TileSet resources use property layers, which you can add or remove depending on your needs.
For example, adding a physics layer allows giving collision shapes to your tiles. Each layer has dedicated properties (physics layer and mask), so you may add several TileSet physics layers for each type of collision you need.
See the functions to add new layers for more information.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
TileSetConstructor
public TileSet();Properties5
TileLayoutProperty
public TileSet.TileLayoutEnum TileLayout { get; set; }For all half-offset shapes (Isometric, Hexagonal and Half-Offset square), changes the way tiles are indexed in the TileMapLayer grid.
TileOffsetAxisProperty
public TileSet.TileOffsetAxisEnum TileOffsetAxis { get; set; }For all half-offset shapes (Isometric, Hexagonal and Half-Offset square), determines the offset axis.
TileShapeProperty
public TileSet.TileShapeEnum TileShape { get; set; }The tile shape.
TileSizeProperty
public Vector2I TileSize { get; set; }Grid cell size used for layout and coordinate conversion. Not automatically the same as an atlas tile image size, which the source configures with TextureRegionSize. The example explicitly sets both to 16×16.
UVClippingProperty
public bool UVClipping { get; set; }Enables/Disable uv clipping when rendering the tiles.
Methods90
AddCustomDataLayervoid
public void AddCustomDataLayer(int toPosition = -1);Adds a custom data layer to the TileSet at the given position to_position in the array. If to_position is -1, adds it at the end of the array.
Custom data layers allow assigning custom properties to atlas tiles.
| Name | Type | Default |
|---|---|---|
toPosition | int | -1 |
AddNavigationLayervoid
public void AddNavigationLayer(int toPosition = -1);Adds a navigation layer to the TileSet at the given position to_position in the array. If to_position is -1, adds it at the end of the array.
Navigation layers allow assigning a navigable area to atlas tiles.
| Name | Type | Default |
|---|---|---|
toPosition | int | -1 |
AddOcclusionLayervoid
public void AddOcclusionLayer(int toPosition = -1);Adds an occlusion layer to the TileSet at the given position to_position in the array. If to_position is -1, adds it at the end of the array.
Occlusion layers allow assigning occlusion polygons to atlas tiles.
| Name | Type | Default |
|---|---|---|
toPosition | int | -1 |
AddPatternint
public int AddPattern(TileMapPattern pattern, int index = -1);Adds a TileMapPattern to be stored in the TileSet resource. If provided, insert it at the given index.
| Name | Type | Default |
|---|---|---|
pattern | TileMapPattern | — |
index | int | -1 |
intAddPhysicsLayervoid
public void AddPhysicsLayer(int toPosition = -1);Adds a physics layer to the TileSet at the given position to_position in the array. If to_position is -1, adds it at the end of the array.
Physics layers allow assigning collision polygons to atlas tiles.
| Name | Type | Default |
|---|---|---|
toPosition | int | -1 |
AddSourceint
public int AddSource(TileSetSource source, int atlasSourceIdOverride = -1);Adds a TileSetSource to the TileSet. If atlas_source_id_override is not -1, also set its source ID. Otherwise, a unique identifier is automatically generated.
The function returns the added source ID or -1 if the source could not be added.
Warning: A source cannot belong to two TileSets at the same time. If the added source was attached to another TileSet, it will be removed from that one.
| Name | Type | Default |
|---|---|---|
source | TileSetSource | — |
atlasSourceIdOverride | int | -1 |
intAddTerrainvoid
public void AddTerrain(int terrainSet, int toPosition = -1);Adds a new terrain to the given terrain set terrain_set at the given position to_position in the array. If to_position is -1, adds it at the end of the array.
| Name | Type | Default |
|---|---|---|
terrainSet | int | — |
toPosition | int | -1 |
AddTerrainSetvoid
public void AddTerrainSet(int toPosition = -1);Adds a new terrain set at the given position to_position in the array. If to_position is -1, adds it at the end of the array.
| Name | Type | Default |
|---|---|---|
toPosition | int | -1 |
CleanupInvalidTileProxiesvoid
public void CleanupInvalidTileProxies();Clears tile proxies pointing to invalid tiles.
ClearTerrainsvoid
public void ClearTerrains(int terrainSet);Clears all terrain properties for the given terrain set.
| Name | Type | Default |
|---|---|---|
terrainSet | int | — |
ClearTileProxiesvoid
public void ClearTileProxies();Clears all tile proxies.
GetAlternativeLevelTileProxyReckfell.Collections.Array
public Reckfell.Collections.Array GetAlternativeLevelTileProxy(int sourceFrom, Vector2I coordsFrom, int alternativeFrom);Returns the alternative-level proxy for the given identifiers. The returned array contains the three proxies' target identifiers (source ID, atlas coordinate ID, and alternative tile ID). If the TileSet has no proxy for the given identifiers, returns an empty Array.
| Name | Type | Default |
|---|---|---|
sourceFrom | int | — |
coordsFrom | Vector2I | — |
alternativeFrom | int | — |
Reckfell.Collections.ArrayGetCoordsLevelTileProxyReckfell.Collections.Array
public Reckfell.Collections.Array GetCoordsLevelTileProxy(int sourceFrom, Vector2I coordsFrom);Returns the coordinate-level proxy for the given identifiers. The returned array contains the two target identifiers of the proxy (source ID and atlas coordinates ID). If the TileSet has no proxy for the given identifiers, returns an empty Array.
| Name | Type | Default |
|---|---|---|
sourceFrom | int | — |
coordsFrom | Vector2I | — |
Reckfell.Collections.ArrayGetCustomDataLayerByNameint
public int GetCustomDataLayerByName(string layerName);Returns the index of the custom data layer identified by the given name.
| Name | Type | Default |
|---|---|---|
layerName | string | — |
intGetCustomDataLayerNamestring
public string GetCustomDataLayerName(int layerIndex);Returns the name of the custom data layer identified by the given index.
| Name | Type | Default |
|---|---|---|
layerIndex | int | — |
stringGetCustomDataLayerTypeVariant.Type
public Variant.Type GetCustomDataLayerType(int layerIndex);Returns the type of the custom data layer identified by the given index.
| Name | Type | Default |
|---|---|---|
layerIndex | int | — |
Variant.TypeGetCustomDataLayersCountint
public int GetCustomDataLayersCount();Returns the custom data layers count.
intGetNavigationLayerLayerValuebool
public bool GetNavigationLayerLayerValue(int layerIndex, int layerNumber);Returns whether or not the specified navigation layer of the TileSet navigation data layer identified by the given layer_index is enabled, given a navigation_layers layer_number between 1 and 32.
| Name | Type | Default |
|---|---|---|
layerIndex | int | — |
layerNumber | int | — |
boolGetNavigationLayerLayersuint
public uint GetNavigationLayerLayers(int layerIndex);Returns the navigation layers (as in the Navigation server) of the given TileSet navigation layer.
| Name | Type | Default |
|---|---|---|
layerIndex | int | — |
uintGetNavigationLayersCountint
public int GetNavigationLayersCount();Returns the navigation layers count.
intGetNextSourceIdint
public int GetNextSourceId();Returns a new unused source ID. This generated ID is the same that a call to TileSet.AddSource would return.
intGetOcclusionLayerLightMaskint
public int GetOcclusionLayerLightMask(int layerIndex);Returns the light mask of the occlusion layer.
| Name | Type | Default |
|---|---|---|
layerIndex | int | — |
intGetOcclusionLayerSdfCollisionbool
public bool GetOcclusionLayerSdfCollision(int layerIndex);Returns if the occluders from this layer use sdf_collision.
| Name | Type | Default |
|---|---|---|
layerIndex | int | — |
boolGetOcclusionLayersCountint
public int GetOcclusionLayersCount();Returns the occlusion layers count.
intGetPatternTileMapPattern
public TileMapPattern GetPattern(int index = -1);Returns the TileMapPattern at the given index.
| Name | Type | Default |
|---|---|---|
index | int | -1 |
TileMapPatternGetPatternsCountint
public int GetPatternsCount();Returns the number of TileMapPattern this tile set handles.
intGetPhysicsLayerCollisionLayeruint
public uint GetPhysicsLayerCollisionLayer(int layerIndex);Returns the collision layer (as in the physics server) bodies on the given TileSet's physics layer are in.
| Name | Type | Default |
|---|---|---|
layerIndex | int | — |
uintGetPhysicsLayerCollisionMaskuint
public uint GetPhysicsLayerCollisionMask(int layerIndex);Returns the collision mask of bodies on the given TileSet's physics layer.
| Name | Type | Default |
|---|---|---|
layerIndex | int | — |
uintGetPhysicsLayerCollisionPriorityfloat
public float GetPhysicsLayerCollisionPriority(int layerIndex);Returns the collision priority of bodies on the given TileSet's physics layer.
| Name | Type | Default |
|---|---|---|
layerIndex | int | — |
floatGetPhysicsLayerPhysicsMaterialPhysicsMaterial
public PhysicsMaterial GetPhysicsLayerPhysicsMaterial(int layerIndex);Returns the physics material of bodies on the given TileSet's physics layer.
| Name | Type | Default |
|---|---|---|
layerIndex | int | — |
PhysicsMaterialGetPhysicsLayersCountint
public int GetPhysicsLayersCount();Returns the physics layers count.
intGetSourceTileSetSource
public TileSetSource GetSource(int sourceId);Returns the TileSetSource with ID source_id.
| Name | Type | Default |
|---|---|---|
sourceId | int | — |
TileSetSourceGetSourceCountint
public int GetSourceCount();Returns the number of TileSetSource in this TileSet.
intGetSourceIdint
public int GetSourceId(int index);Returns the source ID for source with index index.
| Name | Type | Default |
|---|---|---|
index | int | — |
intGetSourceLevelTileProxyint
public int GetSourceLevelTileProxy(int sourceFrom);Returns the source-level proxy for the given source identifier. If the TileSet has no proxy for the given identifier, returns -1.
| Name | Type | Default |
|---|---|---|
sourceFrom | int | — |
intGetTerrainColorColor
public Color GetTerrainColor(int terrainSet, int terrainIndex);Returns a terrain's color.
| Name | Type | Default |
|---|---|---|
terrainSet | int | — |
terrainIndex | int | — |
ColorGetTerrainNamestring
public string GetTerrainName(int terrainSet, int terrainIndex);Returns a terrain's name.
| Name | Type | Default |
|---|---|---|
terrainSet | int | — |
terrainIndex | int | — |
stringGetTerrainSetModeTileSet.TerrainMode
public TileSet.TerrainMode GetTerrainSetMode(int terrainSet);Returns a terrain set mode.
| Name | Type | Default |
|---|---|---|
terrainSet | int | — |
TileSet.TerrainModeGetTerrainSetsCountint
public int GetTerrainSetsCount();Returns the terrain sets count.
intGetTerrainsCountint
public int GetTerrainsCount(int terrainSet);Returns the number of terrains in the given terrain set.
| Name | Type | Default |
|---|---|---|
terrainSet | int | — |
intGetTileLayoutTileSet.TileLayoutEnum
public TileSet.TileLayoutEnum GetTileLayout();TileSet.TileLayoutEnumGetTileOffsetAxisTileSet.TileOffsetAxisEnum
public TileSet.TileOffsetAxisEnum GetTileOffsetAxis();TileSet.TileOffsetAxisEnumGetTileShapeTileSet.TileShapeEnum
public TileSet.TileShapeEnum GetTileShape();TileSet.TileShapeEnumGetTileSizeVector2I
public Vector2I GetTileSize();Vector2IHasAlternativeLevelTileProxybool
public bool HasAlternativeLevelTileProxy(int sourceFrom, Vector2I coordsFrom, int alternativeFrom);Returns if there is an alternative-level proxy for the given identifiers.
| Name | Type | Default |
|---|---|---|
sourceFrom | int | — |
coordsFrom | Vector2I | — |
alternativeFrom | int | — |
boolHasCoordsLevelTileProxybool
public bool HasCoordsLevelTileProxy(int sourceFrom, Vector2I coordsFrom);Returns if there is a coodinates-level proxy for the given identifiers.
| Name | Type | Default |
|---|---|---|
sourceFrom | int | — |
coordsFrom | Vector2I | — |
boolHasCustomDataLayerByNamebool
public bool HasCustomDataLayerByName(string layerName);Returns if there is a custom data layer named layer_name.
| Name | Type | Default |
|---|---|---|
layerName | string | — |
boolHasSourcebool
public bool HasSource(int sourceId);Returns if this TileSet has a source for the given source ID.
| Name | Type | Default |
|---|---|---|
sourceId | int | — |
boolHasSourceLevelTileProxybool
public bool HasSourceLevelTileProxy(int sourceFrom);Returns if there is a source-level proxy for the given source ID.
| Name | Type | Default |
|---|---|---|
sourceFrom | int | — |
boolIsUVClippingbool
public bool IsUVClipping();boolMapTileProxyReckfell.Collections.Array
public Reckfell.Collections.Array MapTileProxy(int sourceFrom, Vector2I coordsFrom, int alternativeFrom);According to the configured proxies, maps the provided identifiers to a new set of identifiers. The source ID, atlas coordinates ID and alternative tile ID are returned as a 3 elements Array. This function first look for matching alternative-level proxies, then coordinates-level proxies, then source-level proxies. If no proxy corresponding to provided identifiers are found, returns the same values the ones used as arguments.
| Name | Type | Default |
|---|---|---|
sourceFrom | int | — |
coordsFrom | Vector2I | — |
alternativeFrom | int | — |
Reckfell.Collections.ArrayMoveCustomDataLayervoid
public void MoveCustomDataLayer(int layerIndex, int toPosition);Moves the custom data layer at index layer_index to the given position to_position in the array. Also updates the atlas tiles accordingly.
| Name | Type | Default |
|---|---|---|
layerIndex | int | — |
toPosition | int | — |
MoveNavigationLayervoid
public void MoveNavigationLayer(int layerIndex, int toPosition);Moves the navigation layer at index layer_index to the given position to_position in the array. Also updates the atlas tiles accordingly.
| Name | Type | Default |
|---|---|---|
layerIndex | int | — |
toPosition | int | — |
MoveOcclusionLayervoid
public void MoveOcclusionLayer(int layerIndex, int toPosition);Moves the occlusion layer at index layer_index to the given position to_position in the array. Also updates the atlas tiles accordingly.
| Name | Type | Default |
|---|---|---|
layerIndex | int | — |
toPosition | int | — |
MovePhysicsLayervoid
public void MovePhysicsLayer(int layerIndex, int toPosition);Moves the physics layer at index layer_index to the given position to_position in the array. Also updates the atlas tiles accordingly.
| Name | Type | Default |
|---|---|---|
layerIndex | int | — |
toPosition | int | — |
MoveTerrainvoid
public void MoveTerrain(int terrainSet, int terrainIndex, int toPosition);Moves the terrain at index terrain_index for terrain set terrain_set to the given position to_position in the array. Also updates the atlas tiles accordingly.
| Name | Type | Default |
|---|---|---|
terrainSet | int | — |
terrainIndex | int | — |
toPosition | int | — |
MoveTerrainSetvoid
public void MoveTerrainSet(int terrainSet, int toPosition);Moves the terrain set at index terrain_set to the given position to_position in the array. Also updates the atlas tiles accordingly.
| Name | Type | Default |
|---|---|---|
terrainSet | int | — |
toPosition | int | — |
RemoveAlternativeLevelTileProxyvoid
public void RemoveAlternativeLevelTileProxy(int sourceFrom, Vector2I coordsFrom, int alternativeFrom);Removes an alternative-level proxy for the given identifiers.
| Name | Type | Default |
|---|---|---|
sourceFrom | int | — |
coordsFrom | Vector2I | — |
alternativeFrom | int | — |
RemoveCoordsLevelTileProxyvoid
public void RemoveCoordsLevelTileProxy(int sourceFrom, Vector2I coordsFrom);Removes a coordinates-level proxy for the given identifiers.
| Name | Type | Default |
|---|---|---|
sourceFrom | int | — |
coordsFrom | Vector2I | — |
RemoveCustomDataLayervoid
public void RemoveCustomDataLayer(int layerIndex);Removes the custom data layer at index layer_index. Also updates the atlas tiles accordingly.
| Name | Type | Default |
|---|---|---|
layerIndex | int | — |
RemoveNavigationLayervoid
public void RemoveNavigationLayer(int layerIndex);Removes the navigation layer at index layer_index. Also updates the atlas tiles accordingly.
| Name | Type | Default |
|---|---|---|
layerIndex | int | — |
RemoveOcclusionLayervoid
public void RemoveOcclusionLayer(int layerIndex);Removes the occlusion layer at index layer_index. Also updates the atlas tiles accordingly.
| Name | Type | Default |
|---|---|---|
layerIndex | int | — |
RemovePatternvoid
public void RemovePattern(int index);Remove the TileMapPattern at the given index.
| Name | Type | Default |
|---|---|---|
index | int | — |
RemovePhysicsLayervoid
public void RemovePhysicsLayer(int layerIndex);Removes the physics layer at index layer_index. Also updates the atlas tiles accordingly.
| Name | Type | Default |
|---|---|---|
layerIndex | int | — |
RemoveSourcevoid
public void RemoveSource(int sourceId);Removes the source with the given source ID.
| Name | Type | Default |
|---|---|---|
sourceId | int | — |
RemoveSourceLevelTileProxyvoid
public void RemoveSourceLevelTileProxy(int sourceFrom);Removes a source-level tile proxy.
| Name | Type | Default |
|---|---|---|
sourceFrom | int | — |
RemoveTerrainvoid
public void RemoveTerrain(int terrainSet, int terrainIndex);Removes the terrain at index terrain_index in the given terrain set terrain_set. Also updates the atlas tiles accordingly.
| Name | Type | Default |
|---|---|---|
terrainSet | int | — |
terrainIndex | int | — |
RemoveTerrainSetvoid
public void RemoveTerrainSet(int terrainSet);Removes the terrain set at index terrain_set. Also updates the atlas tiles accordingly.
| Name | Type | Default |
|---|---|---|
terrainSet | int | — |
SetAlternativeLevelTileProxyvoid
public void SetAlternativeLevelTileProxy(int sourceFrom, Vector2I coordsFrom, int alternativeFrom, int sourceTo, Vector2I coordsTo, int alternativeTo);Create an alternative-level proxy for the given identifiers. A proxy will map set of tile identifiers to another set of identifiers. Proxied tiles can be automatically replaced in TileMapLayer nodes using the editor.
| Name | Type | Default |
|---|---|---|
sourceFrom | int | — |
coordsFrom | Vector2I | — |
alternativeFrom | int | — |
sourceTo | int | — |
coordsTo | Vector2I | — |
alternativeTo | int | — |
SetCoordsLevelTileProxyvoid
public void SetCoordsLevelTileProxy(int sourceFrom, Vector2I coordsFrom, int sourceTo, Vector2I coordsTo);Creates a coordinates-level proxy for the given identifiers. A proxy will map set of tile identifiers to another set of identifiers. The alternative tile ID is kept the same when using coordinates-level proxies. Proxied tiles can be automatically replaced in TileMapLayer nodes using the editor.
| Name | Type | Default |
|---|---|---|
sourceFrom | int | — |
coordsFrom | Vector2I | — |
sourceTo | int | — |
coordsTo | Vector2I | — |
SetCustomDataLayerNamevoid
public void SetCustomDataLayerName(int layerIndex, string layerName);Sets the name of the custom data layer identified by the given index. Names are identifiers of the layer therefore if the name is already taken it will fail and raise an error.
| Name | Type | Default |
|---|---|---|
layerIndex | int | — |
layerName | string | — |
SetCustomDataLayerTypevoid
public void SetCustomDataLayerType(int layerIndex, Variant.Type layerType);Sets the type of the custom data layer identified by the given index.
| Name | Type | Default |
|---|---|---|
layerIndex | int | — |
layerType | Variant.Type | — |
SetNavigationLayerLayerValuevoid
public void SetNavigationLayerLayerValue(int layerIndex, int layerNumber, bool value);Based on value, enables or disables the specified navigation layer of the TileSet navigation data layer identified by the given layer_index, given a navigation_layers layer_number between 1 and 32.
| Name | Type | Default |
|---|---|---|
layerIndex | int | — |
layerNumber | int | — |
value | bool | — |
SetNavigationLayerLayersvoid
public void SetNavigationLayerLayers(int layerIndex, uint layers);Sets the navigation layers (as in the navigation server) for navigation regions in the given TileSet navigation layer.
| Name | Type | Default |
|---|---|---|
layerIndex | int | — |
layers | uint | — |
SetOcclusionLayerLightMaskvoid
public void SetOcclusionLayerLightMask(int layerIndex, int lightMask);Sets the occlusion layer (as in the rendering server) for occluders in the given TileSet occlusion layer.
| Name | Type | Default |
|---|---|---|
layerIndex | int | — |
lightMask | int | — |
SetOcclusionLayerSdfCollisionvoid
public void SetOcclusionLayerSdfCollision(int layerIndex, bool sdfCollision);Enables or disables SDF collision for occluders in the given TileSet occlusion layer.
| Name | Type | Default |
|---|---|---|
layerIndex | int | — |
sdfCollision | bool | — |
SetPhysicsLayerCollisionLayervoid
public void SetPhysicsLayerCollisionLayer(int layerIndex, uint layer);Sets the collision layer (as in the physics server) for bodies in the given TileSet physics layer.
| Name | Type | Default |
|---|---|---|
layerIndex | int | — |
layer | uint | — |
SetPhysicsLayerCollisionMaskvoid
public void SetPhysicsLayerCollisionMask(int layerIndex, uint mask);Sets the collision mask for bodies in the given TileSet physics layer.
| Name | Type | Default |
|---|---|---|
layerIndex | int | — |
mask | uint | — |
SetPhysicsLayerCollisionPriorityvoid
public void SetPhysicsLayerCollisionPriority(int layerIndex, float priority);Sets the collision priority for bodies in the given TileSet physics layer.
| Name | Type | Default |
|---|---|---|
layerIndex | int | — |
priority | float | — |
SetPhysicsLayerPhysicsMaterialvoid
public void SetPhysicsLayerPhysicsMaterial(int layerIndex, PhysicsMaterial physicsMaterial);Sets the physics material for bodies in the given TileSet physics layer.
| Name | Type | Default |
|---|---|---|
layerIndex | int | — |
physicsMaterial | PhysicsMaterial | — |
SetSourceIdvoid
public void SetSourceId(int sourceId, int newSourceId);Changes a source's ID.
| Name | Type | Default |
|---|---|---|
sourceId | int | — |
newSourceId | int | — |
SetSourceLevelTileProxyvoid
public void SetSourceLevelTileProxy(int sourceFrom, int sourceTo);Creates a source-level proxy for the given source ID. A proxy will map set of tile identifiers to another set of identifiers. Both the atlas coordinates ID and the alternative tile ID are kept the same when using source-level proxies. Proxied tiles can be automatically replaced in TileMapLayer nodes using the editor.
| Name | Type | Default |
|---|---|---|
sourceFrom | int | — |
sourceTo | int | — |
SetTerrainColorvoid
public void SetTerrainColor(int terrainSet, int terrainIndex, Color color);Sets a terrain's color. This color is used for identifying the different terrains in the TileSet editor.
| Name | Type | Default |
|---|---|---|
terrainSet | int | — |
terrainIndex | int | — |
color | Color | — |
SetTerrainNamevoid
public void SetTerrainName(int terrainSet, int terrainIndex, string name);Sets a terrain's name.
| Name | Type | Default |
|---|---|---|
terrainSet | int | — |
terrainIndex | int | — |
name | string | — |
SetTerrainSetModevoid
public void SetTerrainSetMode(int terrainSet, TileSet.TerrainMode mode);Sets a terrain mode. Each mode determines which bits of a tile shape is used to match the neighboring tiles' terrains.
| Name | Type | Default |
|---|---|---|
terrainSet | int | — |
mode | TileSet.TerrainMode | — |
SetTileLayoutvoid
public void SetTileLayout(TileSet.TileLayoutEnum layout);| Name | Type | Default |
|---|---|---|
layout | TileSet.TileLayoutEnum | — |
SetTileOffsetAxisvoid
public void SetTileOffsetAxis(TileSet.TileOffsetAxisEnum alignment);| Name | Type | Default |
|---|---|---|
alignment | TileSet.TileOffsetAxisEnum | — |
SetTileShapevoid
public void SetTileShape(TileSet.TileShapeEnum shape);| Name | Type | Default |
|---|---|---|
shape | TileSet.TileShapeEnum | — |
SetTileSizevoid
public void SetTileSize(Vector2I size);| Name | Type | Default |
|---|---|---|
size | Vector2I | — |
SetUVClippingvoid
public void SetUVClipping(bool uVClipping);| Name | Type | Default |
|---|---|---|
uVClipping | bool | — |
TileSet.CellNeighbor
| Value | Description |
|---|---|
BottomCorner = 5 | Neighbor in the bottom corner. |
BottomLeftCorner = 7 | Neighbor in the bottom left corner. |
BottomLeftSide = 6 | Neighbor on the bottom left side. |
BottomRightCorner = 3 | Neighbor in the bottom right corner. |
BottomRightSide = 2 | Neighbor on the bottom right side. |
BottomSide = 4 | Neighbor on the bottom side. |
LeftCorner = 9 | Neighbor in the left corner. |
LeftSide = 8 | Neighbor on the left side. |
RightCorner = 1 | Neighbor in the right corner. |
RightSide = 0 | Neighbor on the right side. |
TopCorner = 13 | Neighbor in the top corner. |
TopLeftCorner = 11 | Neighbor in the top left corner. |
TopLeftSide = 10 | Neighbor on the top left side. |
TopRightCorner = 15 | Neighbor in the top right corner. |
TopRightSide = 14 | Neighbor on the top right side. |
TopSide = 12 | Neighbor on the top side. |
TileSet.TerrainMode
| Value | Description |
|---|---|
Corners = 1 | Requires corners to match with neighboring tiles' terrains. |
CornersAndSides = 0 | Requires both corners and side to match with neighboring tiles' terrains. |
Sides = 2 | Requires sides to match with neighboring tiles' terrains. |
TileSet.TileLayoutEnum
| Value | Description |
|---|---|
DiamondDown = 5 | Tile coordinates layout where the horizontal axis goes down-right, and the vertical one goes down-left. |
DiamondRight = 4 | Tile coordinates layout where the horizontal axis goes up-right, and the vertical one goes down-right. |
Stacked = 0 | Tile coordinates layout where both axis stay consistent with their respective local horizontal and vertical axis. |
StackedOffset = 1 | Same as |
StairsDown = 3 | Tile coordinates layout where the vertical axis stay vertical, and the horizontal one goes down-right. |
StairsRight = 2 | Tile coordinates layout where the horizontal axis stay horizontal, and the vertical one goes down-right. |
TileSet.TileOffsetAxisEnum
| Value | Description |
|---|---|
Horizontal = 0 | Horizontal half-offset. |
Vertical = 1 | Vertical half-offset. |
TileSet.TileShapeEnum
| Value | Description |
|---|---|
HalfOffsetSquare = 2 | Rectangular tile shape with one row/column out of two offset by half a tile. |
Hexagon = 3 | Hexagonal tile shape. |
Isometric = 1 | Diamond tile shape (for isometric look).
Note: Isometric |
Square = 0 | Rectangular tile shape. |