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"

Inventory system with UMG

anyone know a tutorial to how to create an inventory system with UMG blueprint or can explain me in a "few words"? a basic/simple concept of inventory system, with add item, create slot, ecc.ecc. thanks.

Product Version: UE 4.10
Tags:
more ▼

asked Dec 11 '15 at 06:53 PM in Blueprint Scripting

avatar image

Revelage
56 6 12 14

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

There's many many videos detailing inventory systems. Even from the devs.

But, the basic concept is you have a variable storing the inventory, and this variable is usually a struct array, since each index would be an item with different data, e.g stats, name, value, etc..

You use these structs to store item data, and you then use that item data with the UMG.

Example struct:

  • Mesh

  • Thumbnail

  • Name

  • Weight

Gameplay example: You have an item in world with a struct variable "info". When you interact with this item, you can destroy it from the world, store the info in your inventory array, and use the "info" variable to have the item appear in your inventory widget. You would have a "slot" widget show the thumbnail, and an "info" widget show name and weight.

And since you have the info stored, you can very easily drop the item again.

more ▼

answered Dec 11 '15 at 07:29 PM

avatar image

vanlacke
1.5k 65 132 103

avatar image Revelage Dec 11 '15 at 07:49 PM

thanks a lot.

(comments are locked)
10|2000 characters needed characters left
Your answer
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