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"

Grid panel's "Remove Child" seems broken?

Hello, I'm implementing an inventory system. I have a widget blueprint WBP_Inventory, which has a grid panel. The grid panel holds and aligns a kind of widget blueprint WBP_Item. When an item is added, a corresponding WBP_Item is created and added to the grid panel with the following logic: alt text

When a WBP_Item is clicked, it should be removed from the grid panel. I tried to use this logic: alt text

But it resulted in a broken display of my items. I was able to poke holes in the grid panel with my mouse! alt text

I had to clear all children of the grid panel, and re-add items according to my array of WBP_Items: alt text

This gives a correct behavior, where if an item is removed, every item after it will be pushed forward one slot.

I wonder if I'm doing something wrong here? Does anyone have a similar experience?

Note: Screenshots only reveal part of my logic. I believe my array is properly maintained.

Product Version: UE 4.21
more ▼

asked Jan 28 '19 at 09:22 PM in Blueprint Scripting

avatar image

Root Bone

avatar image dabs863 Jan 28 '19 at 09:43 PM

have you done a remove from parent?

(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