Getting Started

  • Creating a menu via using the Simple Menu prefab Under Quantum Tek > Simple Menu > Prefabs > Components > Simple Menu along with an Event System is the first step to make a menu
  • Use the other prefab components or menus/windows to create your own custom menu
  • Keep in mind that for a tab group to work, you must assign the OnClick event the correct window to open using the ChangeTab function, as seen in the image below
  • To open/close a window, call the Toggle function on the window you want to open. This can be done by script or by using the OnClick event for a button similar to the one above, and assigning the correct window as a parameter
  • You can toggle a tab group just the same
  • ToggleMenu is a function available to the SM_Menu script to open or close all tab groups and windows in the menu
  • SM_Audio is a component meant to allow for sound playing on UI events, such as playing a sound on button click. This would be done by having one SM_Audio on a GameObject for specifically button sounds, and so on
  • SM_Bar is a component that will act as a progress bar with three different ways of filling the bar: changing the image width, height, or fill amount
  • SM_OptionList is a component that has two buttons to switch between string option choices. However, any way of changing what the current option is will work
  • Tabs in tab groups can be aligned using the AlignTabs function after setting the alignment variable for the SM_TabGroup
  • Prefab menus include: An empty menu, a main menu, and a pause menu
  • Prefab windows include: An empty window, an empty tab group, a confirmation window, a loading window, a login window, and a settings tab group
  • Prefab components don’t have functionality attached, meaning that you’ll have to assign functions to the UI events on the UI components
  • The value of a TMP_Dropdown, SM_OptionList, Slider, and Toggle can be saved using an SM_SaveDropdown, SM_SaveOptionList, SM_SaveSlider, or SM_SaveToggle component and calling the Save function on it. Combining this function with an OnValueChange or similar event will allow autosaving of these component values

  • SM_Menu is the backbone of a menu, but usually won’t have functions called on it
  • SM_Window is a regular window in the menu, and is used to open/close the window it represents
  • SM_TabGroup is similar to a window, but acts as a group of windows that only one can be opened at a time. However, multiple tab groups can be open at a time
  • SM_TabWindow is a window inside of the SM_TabGroup
  • SM_Tab is the tab corresponding to an SM_TabWindow in a tab group
  • SM_OptionList is an option list of strings to choose from
  • SM_Bar is a progress bar for things like XP, health, loading progress, etc.
  • SM_Audio is a component meant for playing UI sound effects, with one for each type of component, but can be used in other ways
  • SM_Save… is used to save the values of the corresponding UI elements to PlayerPrefs