Forum rules - please read before posting.

Inventory Item Slot default/empty texture

edited November 2017 in Technical Q&A
How do you set an empty texture to a custom inventory? I have created a new inventory and followed the tutorial here: https://adventurecreator.org/tutorials/creating-inventory-bar-unity-ui
how do I set a default image for the empty item slots? It seems that the default inventory also doesn't have a default texture for the empty item slots. Thanks!

Comments

  • This can generally be done by having an 'empty slot' graphic placed behind the UI button.  When an slot is empty, the button's texture will be made null - so the empty slot graphic will then be visible behind it.
  • edited November 2017
    Thanks :) I was thinking that were was another way to do this without doing it like that (having a default background image for the button for active and inactive states, this way the inventory items do not need to be recreated with a background for each item) but this does do the work so thanks a lot :) Also, how do I ping you for another question from my previous thread? It's about the arrow prompts, I want to make a menu that mimics it so that I can reposition my arrow prompts
  • Repositionable arrow prompts will be available in the upcoming 1.60.3 update.
  • Thanks :) I have made a way to reposition them though, is it okay to post it here?
  • As it'll be out soon, I don't see the need - but so long as you don't post the original code I've no problem with it.
  • Well then I'll not be posting it then, that took me a while to figure it out though, but thanks anyways :)
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.