Forum rules - please read before posting.

Cycle button Unity UI

Could you show me how to set up Cycle button for Unity UI? I'm using Button, not Dropdown. It said "Per-option textures require a Rawimage component on the linked Button".
Either adding rawimages or buttons with rawimage as the child of the main button doesn't work.

Comments

  • To clarify: the help box that appears will always show when the option is checked. It's not an indicator of the UI not having been set up correctly.

    Adding a Raw Image component either on the same object as the Button, or a child, should be enough.

    What is your AC version, and what's the exact behaviour that occurs at runtime? Does the Raw Image's texture remain as its default, or does it become invisible?

    If you can share screenshots of all the objects / windows involved, I'll see if I can spot the issue.

  • edited December 2025

    Thanks, Chris!

    I'm using AC 1.83 and Unity 6000.0.45f1.

    Turns out it's not because I set it up wrong. For some reason, when I first click on the cycle button, it changes to the next image, then I can't interact with the UI anymore. I'm using keyboard control, not the mouse.

    I found a way to fix it. I added an actionlist to the cycle button so when I click on it, it selects the button again using Menu: Select element.

  • I can't reproduce such behaviour, I'm afraid. Were you previously running a gameplay-blocking ActionList upon clicking?

  • edited December 2025

    I don't do anything to block the gameplay previously. Simply interact with a hotspot to run an actionlist to open the UI.

    One more thing, if I click other buttons in the UI first, then the Cycle button will work properly.

    Here is the setup of the UI.
    https://drive.google.com/drive/folders/1mg0Ci_JRi69cgd9fDUcvJ6GNRsE_pzRl?usp=sharing

    Anyway, I'm happy with the current solution, so I just want to let you know in case it's a bug.

    Thanks for the support!

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.