Selection panel settings for the UI Manager component. The selection panel is used to display information about selected unit(s), building or resource.
Single Selection: When a single unit, a building or a resource is selected, their information will be displayed in the single selection panel.
- Single Selection Panel: The UI object that is activated when the player selects a single unit, a building or a resource. This object is the parent object of all the rest of the UI elements that form the single selection menu.
- Name Text: UI Text that displays the name of the selected item.
- Description Text: UI Text that displays the description of the selected item.
- Show Population Slots: When enabled, the population slots of the selected unit will be displayed at the end of the description.
- Icon: UI Image that displays the icon of the selected item.
- Health Text: UI Text that displays the health of the selected item.
- Health Bar: Add both an empty and a full health bars to display the health.
Multiple Selection: Only active when multiple units are selected.
- Multiple Selection Panel: When selecting multiple units, they are displayed as tasks displaying the selected units’ icons and are set as children objects of the object assigned to this field. This object should have a Grid Layout Group component. Using your desired settings for that component, all the task buttons will be arranged inside the grid layout.
You can interact with tasks that represent multiple selected units this way, when clicking on one of them:
- The multiple selection key (assigned in the Selection Manager component) is pressed: The unit corresponding to the clicked task is removed from the selection.
- Otherwise: Only the unit corresponding to the clicked task is left selected, all other units are de-selected.