Forum rules - please read before posting.

Mixing Options and GraphicOptions menus together

Hey,

My game is a simple 2D game, and I don't need the graphic options menu to be separated because I only need the Resolution Label, Fullscreen Label, and maybe the VSync Label. What is the best approach to move some graphic options elements into the options menu?

Thank you,

Comments

  • Do it the other way around - move the elements from Options into your GraphicOptions menu.

    Start by setting your Options menu's Source to Unity Ui Prefab - you'll see the OptionsUI prefab then listed below. Drag it into the scene, unpack it, and do the same for your GraphicOptionsUI prefab.

    Move the various fields from OptionsUI into your GraphicOptionsUI's hierarchy (keeping the same shared Panel parent). You can leave out its Back button. Overwrite these changes back onto the GraphicOptionsUI prefab, and remove both from the scene.

    Then do the same in the Menu Manager - copy the elements (SFX volume, Subtitles etc) from Options into GraphicOptions. Don't copy the Back button, but instead copy its settings - in the Graphic Options Back button element, set its Click type to Crossfade and Menu to switch to to Pause.

    Finally, go to your Pause menu, select the Options button element, and set its Menu to switch to to GraphicOptions.

  • Thank you very much for the detailed explanation. Out of curiosity, why is it better to move the elements from Options to GraphicOptions instead of vice versa?

  • The GraphicOptions menu requires use of the GraphicOptionsUI script to function correctly, which is attached to the root of its UI prefab. Transferring elements the other way around would also mean having to rebuild this component, since its field values would become unset.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.