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"

[UMG] Animate a widget sliding open within its desired size.

Hi all,

How can I animate (using UMG animations) a UserWidget's contents sliding in/out without knowing its desired size beforehand? i.e I need a 0 - 1 key-able value for moving the contents of a widget in some direction out of the widget (Which preferably clips).

A simple example is sliding in the contents of a widget that takes up the entire player screen, from the top. The widget handles getting the correct desired size at run-time so we cannot use animations to render transforms or canvas panel offsets as they're not 0-1. Pivots won't work either as the content will usually resize with the parent widget.

Another example:

alt text

I want this widget to side off the screen (Which in theory is just sliding the contents out of the parent widget) regardless of my screen size, the widget's size and its contents. I cannot use render transforms as they are not 0-1. Placing the widget's contents in a horizontal box with a spacer doesn't work as the horizontal slots can't have their fill amount animated.

Cheers, Mugen

Product Version: UE 4.16
Tags:
widgets3.jpg (21.1 kB)
more ▼

asked Jun 21 '17 at 10:47 PM in Blueprint Scripting

avatar image

MugenCity
167 12 18 102

avatar image Admiral Frijoles Feb 10 '18 at 02:43 AM

Hello, did you ever find a workaround for this?

avatar image MugenCity Feb 13 '18 at 04:42 AM

Sadly not. I had to hard-code the sizes into the animation and haven't looked into any other solutions since.

(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