Forum rules - please read before posting.

Screen resolution

Where can I set what screen resolution will be in the game?

Comments

  • I understand there is only here or somewhere else there are settings?

  • The values entered there are the default values you can assign to Unity.

    To control the resolution at runtime, you must use scripting.

    A template that provides graphic options, including resolution, can be found on the Downloads page.

  • edited November 2022

    I downloaded and installed and even works )) but the back button does not work, how can this be fixed?

  • The Back Button's "Click type" in the Menu Manager is set to "Turn Off Menu", so it should turn off once clicked.

    Be sure to open the Menu with the Menu: Change state Action - not by dropping the UI prefab manually into the scene.

  • edited November 2022

    Please show on the screenshots where to search for what you described, I'm completely confused. :'(

    My problem is that I don’t know where to look for the current items or parameters that you write about above.

    It seems to me that recording a video lesson will save you from 1000 questions. ;)

  • The Back button is one of the elements in the GraphicOptions menu (probably at the bottom). This element will have a "Click type" field, this is where you can choose to set it to "Turn Off Menu".

    Chris is asking how you are opening the menu to test it out, as it will only function properly if it is opened with a Menu:Change State / Turn On action, not just by having the UI prefab itself is in the scene.

  • @Animal Besides that, you probably wouldn't be completely confused if you read through the manual: it's 430 pages long for a reason, AC is a complex asset.

  • edited November 2022

    The Back button is one of the elements in the GraphicOptions menu (probably at the bottom). This element will have a "Click type" field, this is where you can choose to set it to "Turn Off Menu".

    I looked for the "Click type" element wherever possible.

    Showing a screenshot is much easier, don't you think?

    Am I doing everything right now or is there something else I need to add?

  • edited November 2022

    Instructions can be found in the package's Readme file.

    It looks like your Menu has no elements.

    Have you created the Menu inside the Menu Manager from scratch? That is not necessary - the package include a MenuManager asset that contains a ready-made Menu with the required elements. You can copy this Menu into your own Manager by assigning it at the top of the Manager window, then clicking the cog icon beside the Menu's name.

    The list of elements, including the BackButton, should look like this:

    The "Click type" is a property of the Button element - not an element type itself. You can see it towards the bottom of the above screenshot. If you want to stick with your existing Menu, create a new Button with the above settings, and link it to the UI prefab's Back button object.

    Details on how to work with Unity UI-based menus can be found in the Manual's "Unity UI menus" chapter, as well as this tutorial.

    To turn on the Menu when your scene begins, add a Menu: Change state Action to your existing OnStart ActionList, setting the Change type to Turn On Menu, and the Menu to turn on to GraphicOptions.

  • edited November 2022

    Mine doesn't look quite the same as yours. I'm probably doing something wrong, but it's damn hard for me to connect the menu. Can I ask you to record 2 videos on how to connect (GRAPHIC OPTIONS and SAVE GAME SCREENSHOTS) I will be eternally grateful to you. If possible.

  • You do not need to connect the Menu - it should already be provided in the package.

    At the top of the Menu Manager, point the "Asset file" field to "GraphicOptions_MenuManager".

    This should list the provided GraphicOptions menu. If you select it, the elements should then appear. Is this the case? If not, re-import the package to reset things.

    Once they appear, click the cog icon beside the menu and choose "Copy". Then - back at the top of the Menu Manager", point the "Asset file" field back to your own Menu Manager. You can then click "Paste menu" at the bottom to paste the GraphicOptions menu into your own Menu Manager.

  • edited November 2022

    At the top of the Menu Manager, point the "Asset file" field to "GraphicOptions_MenuManager".

    Everything works and everything is elementary simple, except for the above-described moment. :)

  • https://streamable.com/qay7z0

    There was a problem with loading the level, but this, I believe, is not due to the menu. It can be fixed?

  • Everything works and everything is elementary simple, except for the above-described moment. :)

    Video here.

    There was a problem with loading the level, but this, I believe, is not due to the menu. It can be fixed?

    You can test if this is related to the Menu or not by not accessing the GraphicOptions menu before saving.

    Check the Console for related messages. You will need a Constant ID component on your active GameCamera.

    This can be automated via the "Auto-add save components to GameObjects" button in the Settings Manager, but you should read the Manual's "Saving scene objects" chapter first to understand how AC's save-system works.

  • After clicking "Auto-add save components to GameObjects" everything is removed from the scene and gives an error, as you can see in the screenshot.

  • I solved the problem by adding "Constant ID" to the camera

  • After clicking "Auto-add save components to GameObjects" everything is removed from the scene and gives an error, as you can see in the screenshot.

    The process involves going through all scenes in Unity's Build Settings. You may end up in an empty scene once the process is complete, but that's because your other scenes had to be opened and closed.

    Make sure your scenes are added to the Build Settings, and it should add the Constant ID component automatically.

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.