GridMapEditorPlugin
Editor for GridMap nodes.
Editor for GridMap nodes.
GridMapEditorPlugin provides access to the GridMap editor functionality.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
GridMapEditorPluginConstructor
public GridMapEditorPlugin();Methods8
ClearSelectionvoid
public void ClearSelection();Deselects any currently selected cells.
GetCurrentGridMapGridMap
public GridMap GetCurrentGridMap();Returns the GridMap node currently edited by the grid map editor.
GridMapGetSelectedCellsReckfell.Collections.Array
public Reckfell.Collections.Array GetSelectedCells();Returns an array of Vector3Is with the selected cells' coordinates.
Reckfell.Collections.ArrayGetSelectedPaletteItemint
public int GetSelectedPaletteItem();Returns the index of the selected MeshLibrary item in the grid map editor's palette or -1 if no item is selected.
Note: The indices might not be in the same order as they appear in the editor's interface.
intGetSelectionAabb
public Aabb GetSelection();Returns the cell coordinate bounds of the current selection. Use GridMapEditorPlugin.HasSelection to check if there is an active selection.
AabbHasSelectionbool
public bool HasSelection();Returns true if there are selected cells.
boolSetSelectedPaletteItemvoid
public void SetSelectedPaletteItem(int item);Selects the MeshLibrary item with the given index in the grid map editor's palette. If a negative index is given, no item will be selected. If a value greater than the last index is given, the last item will be selected.
Note: The indices might not be in the same order as they appear in the editor's interface.
| Name | Type | Default |
|---|---|---|
item | int | — |
SetSelectionvoid
public void SetSelection(Vector3I begin, Vector3I end);Selects the cells inside the given bounds from begin to end.
| Name | Type | Default |
|---|---|---|
begin | Vector3I | — |
end | Vector3I | — |