Forum rules - please read before posting.

Changing menu appearType through script

Hey there,
I was having a look through the script guide but couldn't figure it out (AC.Menu.appearType)

I have an AC menu using Unity Prefab and I'd like to change its appear type to During Gameplay through script. Basically being able to switch its appeartype depending on the scene you're in. Is there a way to do this?

Thank you so much :smiley:


  • Right-click the field's label to copy an API reference to it that can be pasted into a script. This can be done for any Manager field.

  • edited September 2022

    Thanks so much for that Chris. I'm trying to turn it into a Custom Action to make it easier for me in future but I'm just having trouble with the variable type.

    I've done
    AC.PlayerMenus.GetMenuWithName (MenuName).appearType = "During Gameplay";

    With variable
    public string MenuName;

    But it says it can't convert string to AC.AppearType, what am I doing wrong?

    EDIT: Don't worry I realised it needed to be AC.PlayerMenus.GetMenuWithName (MenuName).appearType = AppearType.DuringGameplay;

    Thanks Chris!

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.