x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Refresh inventory without need to reopen it

Hi, I'm having a problem with my Refresh Slot function. I created it inside the Slot blueprint and I'm calling it to my Inventory Component blueprint. It's working except when I'm doing the crafting system where it won't refresh or update the inventory unless I reopen the Inventory window. Here's the blueprint: alt text

Any ideas?

Product Version: UE 4.19
Tags:
bp-1.png (230.3 kB)
more ▼

asked Jul 31 '18 at 11:21 AM in Blueprint Scripting

avatar image

miramaslow
1 2 8

avatar image Nebula Games Inc Aug 01 '18 at 01:57 AM

Just call the function after you "select" items for crafting or whatnot. You need to find a spot where you would like it to be updated and just "Call Refresh Slot" somewhere in that execution pathway and you should be fine, no need to reopen.

avatar image miramaslow Aug 01 '18 at 08:40 AM

Does this method works on custom event? I created a button widget named 'Craft' and tried to execute the crafting process when the player clicked it but it still I need to reopen the window to see the updated inventory.

avatar image Nebula Games Inc Aug 01 '18 at 08:14 PM

Custom event, function, anything that can be called can be used here. You just need to "call" it so the update can occur at the moment you want.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question