Forum rules - please read before posting.

Menu button image not displaying during runtime

I've gone through the menu tutorials and I think I have everything set up correctly. However, the image I want to use for buttons displays during my edit (image 1), but does not show during runtime. The menu works correctly as I can pick up, display, and use the items in the inventory while playing. But the button image is not displaying during runtime (image 2).
Probably something simple I'm missing and any suggestions would be appreciated.

Unity version: 2021.3.21f1
AC version: 1.78.4

Image 1: https://imgur.com/Pa49409
Image 2: https://imgur.com/Nl3yAFL

Comments

  • So the Button itself is reponsive (i.e. linking correctly to AC), it's just the appearance is incorrect?

    AC shouldn't control a Button element's appearance if its linked to Unity UI - could you share details of the element's details in the Menu Manager?

    If the UI Button is part of an InventoryBox element, though, then AC will set the Button's "Target graphic" to that of the Inventory item it represents - or an empty texture if the slot is empty. To display a texture regardless, add an additional Image component as a child object to the Hierarchy.

  • Thanks Chris, you read it correctly in your last paragraph.
    Adding the image as a child to the Panel did the trick.

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.