This repository was archived by the owner on Sep 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
VRCEUiPage
AtiLion edited this page Oct 23, 2019
·
3 revisions
Requires The VRChat.UI namespace
- VRCMenuUtils Properties
- Unity Objects
- UI Objects
- Component Properties
- Component Events
- Component Functions
Creates a new menu page.
Parameters
- name - The name of the button gameobject(needs to be unique)
- displayName - The display name of the page visible to the user
VRCEUiPage page = new VRCEUiPage("pgeTest", "Test Page");
Returns true if the component has been successfully created.
Returns the root Transform of the component.
Returns the position of the component.
Returns the VRCUiPage instance of the component
Executed when the page is shown to the user.
VRCEUiPage page = new VRCEUiPage("pgeTest", "Test Page");
page.OnPageActivated += () {
// Code
};
Executed when the page is hidden from the user.
VRCEUiPage page = new VRCEUiPage("pgeTest", "Test Page");
page.OnpageDeatvitvated += () {
// Code
};
Sets the passed Transform's parent to the page.
Parameters
- child - The transform who's parent to set to the current page
VRCEUiPage page = new VRCEUiPage("pgeTest", "Test Page");
page.AddChild(myButton);