Editor: Create buttons to navigate between parameters

Hello

I would like to create buttons to set different parameters categories in the same script. I would like to do something like this

3554008--285968--upload_2018-7-5_8-0-4.png

If I select Scene option, Inspector wil show parameters related to this, if I selecte Global Maps, parameters of global map, but all of this in the same script. I would like to know Unity Editor function that allow me create it. I know it’s not so simple as a function, but the idea to start work with it.

Thank you!

Hello, you could use a bool to show / hide editor GUI.

string page = "";

void OnGUI() {
    if( GUILayout.Button( "Home", GUILayout.Width( 100 ) ) ) { page = "HomePage"; }
    if( page == "HomePage" ) { HomePage(); }
}

void HomePage() {
    // params
}
1 Like

I’ll try this logic. Thanks