Skip to content
This repository was archived by the owner on Sep 12, 2020. It is now read-only.

VRCMenuUtilsAPI

AtiLion edited this page Oct 17, 2019 · 10 revisions

# The VRCMenuUtilsAPI Docs

Requires VRCMenuUtils namespace

Functions

void RunBeforeFlowManager(IEnumerator func)

Executes a coroutine after the VRChat flow manager is disabled and before it is enabled again.

Parameters

  • func - The coroutine function to execute when the flow manager is disabled.
IEnumerator testFunc() {
	yield break;
}

VRCMenuUtilsAPI.RunBeforeFlowManager(testFunc());

void ShowUIPage(VRCUiPage page, bool removeHeader, bool setupBody)

Shows a specific VRCUiPage on the menu.

Parameters

  • page - The page to show on the menu
  • removeHeader (default=true) - Should the header buttons be removed (Worlds, Social, ...)
  • setupBody (default=true) - Should it create a new menu instance or just switch the menu
VRCUiPage page = VRCMenuUtilsAPI.GetPage("SocialMenu");

VRCMenuUtilsAPI.ShowUIPage(page, false, false);

VRCUiPage GetPage(string pageId)

Gets the VRCUiPage page of the specified pageId or null if he page is not found.

Parameters

  • pageId - The ID of the page you are trying to get the instance of

Returns The VRCUiPage that matches the specified ID

VRCUiPage page = VRCMenuUtilsAPI.GetPage("SocialMenu");
Clone this wiki locally