Unity RTS Engine

  1. Home
  2. Unity RTS Engine
  3. Single Player Menu
  4. Lobby Manager UI

Lobby Manager UI

The Lobby Manager UI component handles the UI elements of the single player menu.

When creating a single player menu using the RTS Engine menu editor, this component is attached to an object called “SinglePlayerMenu” (which is the main single player menu canvas).


  1. Main Menu Scene: Drag and drop the main menu’s scene into this field.
  2. Lobby Faction Parent: UI object, parent of all Lobby Faction objects. Each child object represents a faction slot. In order to organize the faction slots and display them correctly, it’s recommended to have a Grid Layout Group component attached to this object.
  3. Map Drop Down Menu: A UI Dropdown object, child of the map sub-menu, that allows the player to pick a map from a list of possible options. In the “On Value Changed” event of the Dropdown component, drag and drop the object that includes the “LobbyManagerUI” as the event source and set the event to LobbyManagerUI -> “OnMapChanged”.
  4. Map Initial Population Text: A UI Text object, child of the map sub-menu, used to display the selected map’s initial amount of population slots.
  5. Map Description Text: A UI Text object, child of the map sub-menu, that shows the selected map’s description.
  6. Map Max Factions Text: A UI Text object, child of the map sub-menu, that shows the selected map’s maximum allowed amount of factions. This is also the maximum allowed connections for the lobby.
  7. Defeat Condition Menu: Allows to define defeat conditions that can be chosen by the player to be used in the target map.
    1. Menu: A UI Dropdown that allows the player to pick a defeat conditions from a list of possible options.
    2. Defeat Condition UI Elements: Each element of this array represents an option in the above drop down menu. For each element, assign the defeat condition in the Condition field and the corresponding name that will appear as the actual option in the above drop down menu in the Name field.
  8. Speed Modifier Menu: Allows to define different options of speed modifiers so that the player can choose one of them to be used in the target map.
    1. Menu: A UI Dropdown that allows the player to pick the speed modifier from a list of possible options.
    2. Speed Modifier UI Elements: Each element of this array represents an option in the above drop down menu. For each element, assign the value of the speed modifier under the Speed Modifier field and the associated name of the modifier that will appear as an option in the drop down menu in the Name field.
  9. Info Message Text: A UI Text object that shows a message to the player when there’s an error/warning (for example, when maximum faction slot capacity has been reached).
  10. Info Message Reload: How long (in seconds) will each info message will be shown for?
  11. Start Game Button: A UI Button object (does not have a field on this component). This button allows the player to start the single player game. In the “On Click” event of the Button component, drag and drop the object that includes the “LobbyManagerRUI” as the event source and set the event to LobbyManagerUI -> “StartGame”.

How can we help?