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"

Why animation in widget doesn't play after changing parent?

Video I have a widget with my HUD,where i try to repeat menu from Plants vs Zombie 2,when player choose plants to play. alt text Sunflower_Button is a UserWidget with one button and additional parameters.After click on this button i check,if Game already started or not,if not - i call an event MoveButton,that move button to Named Slot at left side. alt text In HUD widget i bind event to move function alt text This function goes threw array of Named Slots,check if they have any children,if not - remove it from currient Named Slot and add it to first free slot at left side. alt text And when it added to left panel click will execute function to get button back. alt text

Blue second button in test purporses just call animate for first button And it works if i don't change parent for my Plant button,after moving it to left panel,animation became broken.

Product Version: UE 4.14
hudwidget.png (102.1 kB)
plantbutton.png (95.7 kB)
construct.png (322.4 kB)
more ▼

asked Dec 27 '16 at 08:11 PM in Blueprint Scripting

avatar image

24 6 6 8

avatar image Rusbaron Dec 29 '16 at 09:37 PM

As i see,all breaks when i call add child,but don't know why and how i can fix it

avatar image Rusbaron Dec 30 '16 at 08:28 AM

also if a change set child function to Set content,animation breaks(((((alt text

setcontent.png (166.8 kB)
(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