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"

Drag and Drop widget not functioning as intended

I seem to have messed up somewhere in the blueprints for an inventory system that uses the drag and drop functionality. the drag works and i can drop it into another bag slot but it doesnt remove the old widget so it essentially duplicates the item and the new widget cant be moved. finally the item images are just really skewed and i cant figure out why. any help is much appreciated ill drop some pictures below to give you an idea of whats happening.
alt text
alt text
alt text
alt text
Before drag and drop alt text after drag and drop
Im also VERY confused as to whats going on in these blueprints. id like to say im becoming pretty well versed in must blueprinting situation, im still a beginner but this UMG so is way over my head. im sure what ever im doing wrong is a quick fix but ill need some help to get there.

Product Version: UE 4.10
Tags:
more ▼

asked Jan 26 '16 at 06:23 PM in Blueprint Scripting

avatar image

CodyScrib
53 9 16 21

avatar image CodyScrib Jan 27 '16 at 07:20 AM

For anyone who might eventually answer this question i figured out why it seems to be copying items. it seams as though its making just a ton of widgets instead of just one so when i drag it around im dragging one of like 30 and i fixed that. i just added a do once in the for each loop before the create widget after i pick up an item but then i cant pick up any more than one item and i cant for the life of me figure out why i cant reset the do once. I need help!
alt text

avatar image CodyScrib Jan 28 '16 at 03:18 AM

fixed something else. im getting closer but theres still problems. and they might be a glimpse at a bigger underlying problem. ive got it creating items as intended and when i drag them around they move as intended. when i drag it removes the it me from the array then when i drop it adds it back in to the array. however this causes problem because when i remove it it sets the items index to -1 and when i drop it it doesnt add it back in the way id like. id like to set it to the index of the empty slot i added it too but if the array only has three things in it then i cant set the item to index 21. perhaps the problem lies with how i added it back in. ive thinking that maybe i should have two separate arrays? but that sounds like work. again any help is appreciated.
alt text

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

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