Forum rules - please read before posting.

Direct Menu Navigation using Gamepad with CombatExample

2»

Comments

  • So everything works great now, thanks for all the feedback, but the interactions menu still will not accept direct navigation. I have tried everything you have suggested and it simply will not work no matter what I do.

  • It looks like a bug with the Interaction menu when using the CombatExample's settings.

    If you open up AC's MenuInteraction script file, look for its GetObjectToSelect function around line 197:

    public override GameObject GetObjectToSelect (int slotIndex = 0)
    {
        if (uiButton)
        {
            return uiButton.gameObject;
        }
        return null;
    }
    

    Replace it with the following:

    public override GameObject GetObjectToSelect (int slotIndex = 0)
    {
        if (fixedIcon)
        {
            if (uiButton)
            {
                return uiButton.gameObject;
            }
        }
        else
        {
            if (uiSlots != null && uiSlots.Length > slotIndex && uiSlots[slotIndex].uiButton)
            {
                return uiSlots[slotIndex].uiButton.gameObject;
            }
        }
        return null;
    }
    

    Does that resolve the issue?

  • That fixed it!!!!!!!! Thanks much!!!!!

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.