Modification start date
[BattleCats.git] / Assets / Scripts / Imported / Tilemap / README.md
blob2a01c76f9c003866df06936f8cc7067811511381
1 # 2d-extras
3 2d-extras is a repository containing helpful reusable scripts which you can use to make your games, with a slant towards 2D. Feel free to customise the behavior of the scripts to create new tools for your use case! 
5 Implemented examples using these scripts can be found in the sister repository [2d-techdemos](https://github.com/Unity-Technologies/2d-techdemos "2d-techdemos: Examples for 2d features").
7 All items in the repository are grouped by use for a feature and are listed below.
9 ### Tilemap
11 For use with Unity 2017.2b02 onwards.
13 ##### Brushes
15 - **Coordinate**: This Brush displays the cell coordinates it is targeting in the SceneView. Use this as an example to create brushes which have extra visualization features when painting onto a Tilemap.
16 - **Line**: This Brush helps draw lines of Tiles onto a Tilemap. The first click of the mouse sets the starting point of the line and the second click sets the ending point of the line and draws the lines of Tiles. Use this as an example to modify brush painting behaviour to making painting quicker with less actions.
17 - **Random**: This Brush helps to place random Tiles onto a Tilemap. Use this as an example to create brushes which store specific data per brush and to make brushes which randomize behaviour.
18 - **Prefab**: This Brush instances and places a randomly selected Prefabs onto the targeted location and parents the instanced object to the paint target. Use this as an example to quickly place an assorted type of GameObjects onto structured locations.
19 - **GameObject**: This Brush instances, places and manipulates GameObjects onto the scene. Use this as an example to create brushes which targets objects other than tiles for manipulation.
20 - **TintBrush**: Brush to edit Tilemap per-cell tint colors.
21 - **TintBrushSmooth**: Advanced tint brush for interpolated tint color per-cell. Requires the use of custom shader (see TintedTilemap.shader)
23 ##### Tiles
25 - **Animated**: Animated Tiles are tiles which run through and display a list of sprites in sequence.
26 - **Pipeline**: Pipeline Tiles are tiles which take into consideration its orthogonal neighboring tiles and displays a sprite depending on whether the neighboring tile is the same tile.
27 - **Random**: Random Tiles are tiles which pseudo-randomly pick a sprite from a given list of sprites and a target location, and displays that sprite.
28 - **Terrain**: Terrain Tiles, similar to Pipeline Tiles, are tiles which take into consideration its orthogonal and diagonal neighboring tiles and displays a sprite depending on whether the neighboring tile is the same tile.
29 - **RuleTile**: Generic visual tile for creating different tilesets like terrain, pipeline, random or animated tiles.
31 ##### Other
33 - **GridInformation**: A simple MonoBehaviour that stores and provides information based on Grid positions and keywords.