SM_Menu

A reference to the menu's background, if there is one.

A reference to the loading bar, if there is one.

Quits the application.

reference.Quit();

int buildIndex - The build index of the scene.

Loads a scene while showing a loading screen.

reference.LoadScene(0);

string sceneName - The name of the scene.

Loads a scene while showing a loading screen.

reference.LoadScene('scene name');

bool shown - Whether or not the background is shown.

Toggles the active state of the background.

reference.ToggleBackground(true);

bool shown - Whether or not the windows are shown.

Toggles the active state of all windows in the menu.

reference.ToggleWindows(true);

bool shown - Whether or not the tab groups are shown.

Toggles the active state of all tab groups in the menu.

reference.ToggleTabGroups(true);

bool shown - Whether or not the menu is shown.

Toggles the active state of everything in the menu.

reference.ToggleMenu(true);

SM_Window

A reference to the window's content.

A reference to the window's animator.

How the animation will be handled for opening/closing the window.

The name of the animator boolean used, if applicable.

The name of the animator trigger used to show the window, if applicable.

The name of the animator trigger used to hide the window, if applicable.

Whether or not the window is active or shown. Don't change this, as it's changed by the Toggle function.

bool shown - Whether or not the window should be shown.

Toggles the active state of the window.

reference.Toggle(true);

SM_TabGroup

A reference to the tab group's content.

A reference to the tab group's animator.

How the animation will be handled for opening/closing the tab group.

The name of the animator boolean used, if applicable.

The name of the animator trigger used to show the tab group, if applicable.

The name of the animator trigger used to hide the tab group, if applicable.

How far from the left and right side the tabs will be during left and right align, and how far off the top of the window they will be.

The alignment that the tabs use in the AlignTabs function.

Whether or not the tab group is active or shown. Don't change this, as it's changed by the Toggle function.

bool shown - Whether or not the tab group should be shown.

Toggles the active state of the tab group.

reference.Toggle(true);

SM_TabWindow tab - The tab window to change to.

Changes the current tab.

reference.ChangeTab(tabWindowReference);

Aligns the tabs of the tab group with the tab group's alignment.

reference.alignment = SM_TabAlign.Center;
reference.AlignTabs();

SM_TabWindow

A reference to the tab group's content.

A reference to the tab group's animator.

A reference to the tab window's tab.

How the animation will be handled for opening/closing the tab group.

The name of the animator boolean used, if applicable.

The name of the animator trigger used to show the tab group, if applicable.

The name of the animator trigger used to hide the tab group, if applicable.

Whether or not the tab window is active or shown. Don't change this, as it's changed by the Toggle function.

bool shown - Whether or not the window should be shown.

Toggles the active state of the window.

reference.Toggle(true);

SM_Tab

A reference to the tab's animator.

How the animation will be handled for activating/deactivating the tab.

The name of the animator boolean used, if applicable.

The name of the animator trigger used to show the tab as active, if applicable.

The name of the animator trigger used to show the tab as inactive, if applicable.

Whether or not the tab is active.

bool shown - Whether or not the tab should be shown.

Toggles the active state of the tab.

reference.Toggle(true);

SM_Bar

A reference to the actual bar transform.

A reference to the fill transform.

A reference to the fill image.

How the bar should be filled.

float percent - The percent represented as a number between 0 and 1.

Sets the percentage filled.

reference.SetFill(0.1f);

SM_OptionList

This is an example variable.

The list of options to choose from.

The index of the current option.

An event that triggers when changing the option.

Returns the string of the current option.

int amount - The amount to change by.

Changes the currently selected option by a certain amount.

reference.ChangeOption(1);

int option - The new selected option.

Sets the currently selected option to a certain option.

reference.SetOption(0);

SM_Audio

A reference to the audio source that will play the sounds.

A reference to the default audio clip that will be played.

Plays the default audio.

reference.PlayAudio();

AudioClip pClip - The clip to play.

Plays the given audio.

reference.PlayAudio(someAudioClip);

SM_SaveDropdown

The name to store the data under.

The script to get the data from.

Saves the data from the corresponding component to the PlayerPrefs.

reference.Save();

SM_SaveOptionList

The name to store the data under.

The script to get the data from.

Saves the data from the corresponding component to the PlayerPrefs.

reference.Save();

SM_SaveSlider

The name to store the data under.

The script to get the data from.

Saves the data from the corresponding component to the PlayerPrefs.

reference.Save();

SM_SaveToggle

The name to store the data under.

The script to get the data from.

Saves the data from the corresponding component to the PlayerPrefs.

reference.Save();