Hi AC community,
I am using the advanced graphics template for AC. I can do basic programming. How do change the script for the resolution selection to force the game to be in 16:9?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Custom scripting shouldn't be necessary. The Graphic Options UI component has a Supported Aspect Ratios field that can be used to limit what resolutions are suggested in the dropdown. This component is on the GraphicOptionsUI prefab linked to the GraphicOptions menu.
AC can also enforce an aspect ratio regardless of the resolution itself. This can be done via the Aspect ratio field in the Settings Manager.
Thanks Chris. Okay so managed to get the game in a 16:9 ratio in the AC settings menu. Thank you for that. But I cannot seem to find the Supported Aspect Ratios field in the GraohicOptionsUI prefab. Am I missing something? Please see the screenshot attached.
https://imgur.com/a/isMqF2o
Looks like you're using an older version of the template, taken from the Downloads page.
An updated version of this template is now included with AC itself, and includes this field.
Hi Chris, is there a updated tutorial I can follow for the Advanced Graphics menu? I am getting this error when I importing it into my project.
Assets\AdventureCreator\Scripts\Templates\GraphicOptions\Assets\Scripts\GraphicOptionsUI.cs(258,29): error CS1061: 'MenuCycle' does not contain a definition for 'SetValue' and no accessible extension method 'SetValue' accepting a first argument of type 'MenuCycle' could be found (are you missing a using directive or an assembly reference?)
Sorry, I'm not following. Are you importing just the template into your project?
It requires the rest of AC's update to be installed as well. What version are you working with?
Oh okay that makes more sence. Yes I have only imported the template. I am currently running AC v1.79.3 as we are nearing development it is a bit difficult to do a upgrade now. I did have major errors the last time I updated AC. But will definitly look into an upgrade to use the Supported Aspect Ratios function the Options settings.
Okay so I have updated AC to the latest version but I am getting the following error:
Assets\AdventureCreator\Scripts\Animation\AnimEngine_Sprites2DToolkit.cs(424,18): error CS0122: 'Char.walkSound' is inaccessible due to its protection level
Delete the AnimEngine_Sprites2DToolkit script - it relates to a now-deprecated asset and is not included in AC any more.