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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Updating Widget Location in Viewport (And why I have to do it this specific way)

Today I decided to tackle something new to me: Dynamically moving a button around in a widget so I can have it appear in different places doing different things (without having to create a bunch of different buttons and hiding and unhiding them), and I ran into something that is making me scratch my head.

My button is its own widget within another widget. There's no canvas panel in the button widget, it's just a button.

I set it to is variable and go into the graph and try this alt text

Obviously originally I had it coming off the event construct node, here I just have it as an example. Anyway it didn't work, it did nothing. So I googled the problem and eventually found out the way to do it is like this..alt text. Which did work, and worked splendidly. The problem is I have no idea why. I get now that the slot contains the position data, that's all fine and data but this leaves me with two questions: 1) What does set position in viewport do then? It comes up if I drag off the get W Event Icon widget reference variable with context sensitive selected. It even has a nice nifty position variable. 2) Why do I have to cast to the canvaspanelslot? Everyday I feel like I understand casting and everyday I run into something that makes it more confusing. If I have the specific reference to the specific widget I want to update, why would I need to cast instead of just set the position directly from the widget reference?

And finally is there a video series/tutorial/documentation/video whatever that I can watch that will help me better understand this stuff? Especially casting in blueprints?

Thanks as always.

Product Version: UE 4.19
more ▼

asked Apr 15 '18 at 01:29 AM in Blueprint Scripting

avatar image

1 1 3 5

(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