Class Tilemap
Assembly: UnityEngine.dll
Syntax
[RequireComponent(typeof(Transform))]
public sealed class Tilemap : GridLayout
Properties
animationFrameRate
Declaration
public float animationFrameRate { get; set; }
Property Value
|
Improve this Doc
View Source
cellBounds
Declaration
public BoundsInt cellBounds { get; }
Property Value
color
Declaration
public Color color { get; set; }
Property Value
editorPreviewOrigin
Declaration
public Vector3Int editorPreviewOrigin { get; }
Property Value
editorPreviewSize
Declaration
public Vector3Int editorPreviewSize { get; }
Property Value
layoutGrid
Declaration
public Grid layoutGrid { get; }
Property Value
localBounds
Declaration
public Bounds localBounds { get; }
Property Value
orientation
Declaration
public Tilemap.Orientation orientation { get; set; }
Property Value
orientationMatrix
Declaration
public Matrix4x4 orientationMatrix { get; set; }
Property Value
origin
Declaration
public Vector3Int origin { get; set; }
Property Value
size
Declaration
public Vector3Int size { get; set; }
Property Value
tileAnchor
Declaration
public Vector3 tileAnchor { get; set; }
Property Value
Methods
AddTileFlags(Vector3Int, TileFlags)
Declaration
public void AddTileFlags(Vector3Int position, TileFlags flags)
Parameters
|
Improve this Doc
View Source
BoxFill(Vector3Int, TileBase, Int32, Int32, Int32, Int32)
Declaration
public void BoxFill(Vector3Int position, TileBase tile, int startX, int startY, int endX, int endY)
Parameters
ClearAllEditorPreviewTiles()
Declaration
public void ClearAllEditorPreviewTiles()
ClearAllTiles()
Declaration
public void ClearAllTiles()
CompressBounds()
Declaration
public void CompressBounds()
|
Improve this Doc
View Source
ContainsTile(TileBase)
Declaration
public bool ContainsTile(TileBase tileAsset)
Parameters
Type |
Name |
Description |
TileBase |
tileAsset |
|
Returns
|
Improve this Doc
View Source
EditorPreviewBoxFill(Vector3Int, Object, Int32, Int32, Int32, Int32)
Declaration
public void EditorPreviewBoxFill(Vector3Int position, Object tile, int startX, int startY, int endX, int endY)
Parameters
|
Improve this Doc
View Source
EditorPreviewFloodFill(Vector3Int, TileBase)
Declaration
public void EditorPreviewFloodFill(Vector3Int position, TileBase tile)
Parameters
|
Improve this Doc
View Source
FloodFill(Vector3Int, TileBase)
Declaration
public void FloodFill(Vector3Int position, TileBase tile)
Parameters
|
Improve this Doc
View Source
GetCellCenterLocal(Vector3Int)
Declaration
public Vector3 GetCellCenterLocal(Vector3Int position)
Parameters
Returns
|
Improve this Doc
View Source
GetCellCenterWorld(Vector3Int)
Declaration
public Vector3 GetCellCenterWorld(Vector3Int position)
Parameters
Returns
GetColliderType(Vector3Int)
Declaration
public Tile.ColliderType GetColliderType(Vector3Int position)
Parameters
Returns
GetColor(Vector3Int)
Declaration
public Color GetColor(Vector3Int position)
Parameters
Returns
GetEditorPreviewColor(Vector3Int)
Declaration
public Color GetEditorPreviewColor(Vector3Int position)
Parameters
Returns
GetEditorPreviewSprite(Vector3Int)
Declaration
public Sprite GetEditorPreviewSprite(Vector3Int position)
Parameters
Returns
|
Improve this Doc
View Source
GetEditorPreviewTile(Vector3Int)
Declaration
public TileBase GetEditorPreviewTile(Vector3Int position)
Parameters
Returns
|
Improve this Doc
View Source
GetEditorPreviewTile<T>(Vector3Int)
Declaration
public T GetEditorPreviewTile<T>(Vector3Int position)
where T : TileBase
Parameters
Returns
Type Parameters
GetEditorPreviewTileFlags(Vector3Int)
Declaration
public TileFlags GetEditorPreviewTileFlags(Vector3Int position)
Parameters
Returns
Declaration
public Matrix4x4 GetEditorPreviewTransformMatrix(Vector3Int position)
Parameters
Returns
GetInstantiatedObject(Vector3Int)
Declaration
public GameObject GetInstantiatedObject(Vector3Int position)
Parameters
Returns
GetSprite(Vector3Int)
Declaration
public Sprite GetSprite(Vector3Int position)
Parameters
Returns
|
Improve this Doc
View Source
GetTile(Vector3Int)
Declaration
public TileBase GetTile(Vector3Int position)
Parameters
Returns
|
Improve this Doc
View Source
GetTile<T>(Vector3Int)
Declaration
public T GetTile<T>(Vector3Int position)
where T : TileBase
Parameters
Returns
Type Parameters
GetTileFlags(Vector3Int)
Declaration
public TileFlags GetTileFlags(Vector3Int position)
Parameters
Returns
|
Improve this Doc
View Source
GetTilesBlock(BoundsInt)
Declaration
public TileBase[] GetTilesBlock(BoundsInt bounds)
Parameters
Returns
Declaration
public Matrix4x4 GetTransformMatrix(Vector3Int position)
Parameters
Returns
GetUsedTilesCount()
Declaration
public int GetUsedTilesCount()
Returns
|
Improve this Doc
View Source
GetUsedTilesNonAlloc(TileBase[])
Declaration
public int GetUsedTilesNonAlloc(TileBase[] usedTiles)
Parameters
Type |
Name |
Description |
TileBase[] |
usedTiles |
|
Returns
|
Improve this Doc
View Source
HasEditorPreviewTile(Vector3Int)
Declaration
public bool HasEditorPreviewTile(Vector3Int position)
Parameters
Returns
|
Improve this Doc
View Source
HasTile(Vector3Int)
Declaration
public bool HasTile(Vector3Int position)
Parameters
Returns
RefreshAllTiles()
Declaration
public void RefreshAllTiles()
RefreshTile(Vector3Int)
Declaration
public void RefreshTile(Vector3Int position)
Parameters
RemoveTileFlags(Vector3Int, TileFlags)
Declaration
public void RemoveTileFlags(Vector3Int position, TileFlags flags)
Parameters
ResizeBounds()
Declaration
public void ResizeBounds()
SetColliderType(Vector3Int, Tile.ColliderType)
Declaration
public void SetColliderType(Vector3Int position, Tile.ColliderType colliderType)
Parameters
SetColor(Vector3Int, Color)
Declaration
public void SetColor(Vector3Int position, Color color)
Parameters
SetEditorPreviewColor(Vector3Int, Color)
Declaration
public void SetEditorPreviewColor(Vector3Int position, Color color)
Parameters
|
Improve this Doc
View Source
SetEditorPreviewTile(Vector3Int, TileBase)
Declaration
public void SetEditorPreviewTile(Vector3Int position, TileBase tile)
Parameters
Declaration
public void SetEditorPreviewTransformMatrix(Vector3Int position, Matrix4x4 transform)
Parameters
|
Improve this Doc
View Source
SetTile(Vector3Int, TileBase)
Declaration
public void SetTile(Vector3Int position, TileBase tile)
Parameters
SetTileFlags(Vector3Int, TileFlags)
Declaration
public void SetTileFlags(Vector3Int position, TileFlags flags)
Parameters
|
Improve this Doc
View Source
SetTiles(Vector3Int[], TileBase[])
Declaration
public void SetTiles(Vector3Int[] positionArray, TileBase[] tileArray)
Parameters
|
Improve this Doc
View Source
SetTilesBlock(BoundsInt, TileBase[])
Declaration
public void SetTilesBlock(BoundsInt position, TileBase[] tileArray)
Parameters
Declaration
public void SetTransformMatrix(Vector3Int position, Matrix4x4 transform)
Parameters
|
Improve this Doc
View Source
SwapTile(TileBase, TileBase)
Declaration
public void SwapTile(TileBase changeTile, TileBase newTile)
Parameters
Extension Methods