Forum rules - please read before posting.

'SettingsManager.forceAspectRatio' inaccessible after updating AC

Hi!
I've made a custom Action to enable/disable Force Aspect Ratio using the AC.KickStarter.settingsManager.forceAspectRatio code and it used to work fine.

After I updated Adventure Creator to the latest version (1.74) I got the following error and I'm force to delete the action to compile:

Assets/AdventureCreator/Scripts/Actions/ActionForceAspectRatio.cs(31,48): error CS0122: 'SettingsManager.forceAspectRatio' is inaccessible due to its protection level

Any hint on how to fix it? Thanks!

Using Unity 2020.3.17f1

Comments

  • edited September 2021

    See the "Upgrade notes" section for v1.73.4. This option has been deprecated in favour of the aspectRatioEnforcement enum, which allows for more options.

    To enable/disable aspect-ratio enforcement:

    AC.KickStarter.settingsManager.aspectRatioEnforcement = AC.AspectRatioEnforcement.Fixed;
    AC.KickStarter.settingsManager.aspectRatioEnforcement = AC.AspectRatioEnforcement.NoneEnforced;
    
  • Thanks Chris, works like a charm now.

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.