Path: blob/master/modules/gridmap/doc_classes/GridMapEditorPlugin.xml
10278 views
<?xml version="1.0" encoding="UTF-8" ?>1<class name="GridMapEditorPlugin" inherits="EditorPlugin" keywords="tilemap" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">2<brief_description>3Editor for [GridMap] nodes.4</brief_description>5<description>6GridMapEditorPlugin provides access to the [GridMap] editor functionality.7</description>8<tutorials>9</tutorials>10<methods>11<method name="clear_selection">12<return type="void" />13<description>14Deselects any currently selected cells.15</description>16</method>17<method name="get_current_grid_map" qualifiers="const">18<return type="GridMap" />19<description>20Returns the [GridMap] node currently edited by the grid map editor.21</description>22</method>23<method name="get_selected_cells" qualifiers="const">24<return type="Array" />25<description>26Returns an array of [Vector3i]s with the selected cells' coordinates.27</description>28</method>29<method name="get_selected_palette_item" qualifiers="const">30<return type="int" />31<description>32Returns the index of the selected [MeshLibrary] item in the grid map editor's palette or [code]-1[/code] if no item is selected.33[b]Note:[/b] The indices might not be in the same order as they appear in the editor's interface.34</description>35</method>36<method name="get_selection" qualifiers="const">37<return type="AABB" />38<description>39Returns the cell coordinate bounds of the current selection. Use [method has_selection] to check if there is an active selection.40</description>41</method>42<method name="has_selection" qualifiers="const">43<return type="bool" />44<description>45Returns [code]true[/code] if there are selected cells.46</description>47</method>48<method name="set_selected_palette_item" qualifiers="const">49<return type="void" />50<param index="0" name="item" type="int" />51<description>52Selects 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.53[b]Note:[/b] The indices might not be in the same order as they appear in the editor's interface.54</description>55</method>56<method name="set_selection">57<return type="void" />58<param index="0" name="begin" type="Vector3i" />59<param index="1" name="end" type="Vector3i" />60<description>61Selects the cells inside the given bounds from [param begin] to [param end].62</description>63</method>64</methods>65</class>666768