Forum rules - please read before posting.

highlight texture in AC InventoryBox UI is not on top of the inventory graphic?

Hello Chris,

I am using the AC menu with inventory. All the inventory I used are rectangle picture without transparency. And I set the highlight texture in AC InventoryBox with a frame png with transparency. All are fine but when I test, the highlight texture didn't show when cursor over the inventory. I tried to change the opacity of the inventory graphic to 50% then test again, the highlight texture can be seen now. So if the inventory picture must have transparency to let the highlight texture visible. Inventory picture without transparency can't be highlighted. Any advise? thanks for your help.

Comments

  • i am using AC 1.78.4, unity 2022.3.9f1

  • edited January 25

    Highlight textures with AC menus are drawn underneath the items - the same behaviour can be found in the two demo games.

    Unity UI offers the ability to render overlay textures above, but you can alter this for AC menus by swapping round lines 1104 and 1105 of MenuInventoryBox.cs:

    GUI.Label (slotRect, string.Empty, _style);
    DrawTexture (ZoomRect (slotRect, zoom), _slot + offset, isActive);
    
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.