XSGridEditor
1.0.0
XSGridEditor is a lightweight square grid map system for 2D/3D SRPG games, and comes with a simple and easy-to-use grid editing function. It can be used as a beginning for you to create SRPG games.
|
the function to draw tile More...
Public Member Functions | |
virtual void | Start () |
virtual XSTile | AddXSTile (XSITileNode tileData) |
virtual bool | RemoveXSTileByWorldPos (Vector3 worldPos) |
virtual void | SetTileToNearTerrain () |
Adjust the height of all tiles More... | |
virtual void | ClearTiles () |
virtual void | SetTilePosShow (bool isShow) |
show tile position text More... | |
virtual void | SetTileCostShow (bool isShow) |
show tile cost text More... | |
virtual void | Update () |
Protected Member Functions | |
virtual Transform | GetUnitRoot () |
virtual Transform | GetTileRoot () |
virtual bool | SetTileToNearTerrain (XSTile tile, bool closeUnit) |
Each tile may have uneven obstacles in the center, adjust the height of the tile to the top of the obstacle For example, raise 100 from the center point of the tile, and then check whether there is a collision within 100. More... | |
virtual void | SetTextShow (bool isShow, string rootName, Action< XSTile, TextMeshPro > afterCreateFn) |
Generate text to display for all tiles More... | |
Properties | |
Grid | Grid [get, set] |
Monitor CellSize changes More... | |
Vector3 | PrevTileSize = Vector3.zero [get, set] |
bool | IsShowTilePos [get] |
bool | IsShowTileCost [get] |
the function to draw tile
|
inlinevirtual |
|
inlinevirtual |
|
protectedvirtual |
|
protectedvirtual |
|
inlinevirtual |
|
inlineprotectedvirtual |
Generate text to display for all tiles
isShow | |
rootName | |
afterCreateFn | Callback after generation |
|
inlinevirtual |
show tile cost text
isShow |
|
inlinevirtual |
show tile position text
isShow |
|
inlinevirtual |
Adjust the height of all tiles
|
inlineprotectedvirtual |
Each tile may have uneven obstacles in the center, adjust the height of the tile to the top of the obstacle For example, raise 100 from the center point of the tile, and then check whether there is a collision within 100.
If it hits, set the height of the tile to the position of the collision point.
|
inlinevirtual |
|
inlinevirtual |
|
getsetprivate |
Monitor CellSize changes
|
get |
|
get |
|
getsetprotected |