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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Storing Array in Widget Blueprint Problem

Hello!,

I am Creating a Inventory and Everything was going well but i have encountered this problem.... Whenever i pickup my item i give a call to my Inventory Widget Blueprint To Send the info over to it. now After the widget blueprint receives the info it adds the item info to a Inventory Items Array. however it keeps adding it to Index 0 for some reason or i think it doesnt even add it (i will check if it does.). However the Item info IS being received since i have tried picking up two different items with different names ofcourse and and Printed the string and its doing it correctly however the index stays at zero when i print it.

[BTW i do know it wont show us that it added it in the Default Value. im Just Printing the index after adding and the index stays at zero after adding two values in the same game session]

Here's what im doing to add items. alt text

Product Version: UE 4.19
Tags:
more ▼

asked Nov 20 '18 at 01:25 PM in Blueprint Scripting

avatar image

SupDeity
318 3 6 15

avatar image tranduil Nov 21 '18 at 10:20 AM

Widgets may not be perfect for storing data, they are made for showing data not for storing and for inventory best place to store items is in actor component dedicated to inventory codes

avatar image SupDeity Nov 21 '18 at 10:52 AM

Alright I guess. As for Actor component I'll just store the inventory items array in my Player BP and save them :)

(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