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"

Casting to Level Blue Print from UI

Hello!

Basically my goal is to have the player access a computer terminal and use the mouse to click on a button. once the button is activated it will open a door in the level.

I am simply trying to add a function where once the player clicks on a Button in a UI Widget that get activated it calls a function in the level Blueprint.

I am having trouble getting the UI and the Level Blueprints to work. One main thing seems to be my lack of understanding for setting an "Object" for the cast.

I have successfully gotten functions too be called via actors but not through level Blueprints and UI Blueprints.

alt text

alt text

Product Version: UE 4.11
Tags:
more ▼

asked Jun 01 '16 at 10:02 AM in Blueprint Scripting

avatar image

Mastace
5 1 4 6

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Inside your Character or whereever you create the Widget (make the Widget variable Editable)

https://gyazo.com/32b97d4462566be5691b5aa66ac48522

In your Widget create a Event Dispatcher and Call it when the button is pressed

https://gyazo.com/b2e581c888da70c6e08175c182b14bfa

Get the refference of the Object that created the Widget and Holds a refference to the Widget. In my Case the Top Down Character I dont know where you created it. Than we bind a Event to the Dispatcher. Start pulling a wire out of the TerminalRef Variable and type Assign that will create the Binding and Event for you. After that you can do whatever you want in your Case play the Matinee.

https://gyazo.com/390466e947d144f615b20b70f4722ace

I highly recommand you to watch this Training video if you have spare time it covers all the Basics about BP Communication https://www.youtube.com/watch?v=EM_HYqQdToE

Good Luck and have Fun Coding =)

more ▼

answered Jun 01 '16 at 05:59 PM

avatar image

Nachtmahr
7k 143 28 172

avatar image Mastace Oct 01 '16 at 11:06 PM

Yeah that didn't really work so I found another way around it. Thank you tho!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Mastace Can u Tell Me How U Fixed it ?

more ▼

answered May 10 '17 at 06:16 PM

avatar image

Tigercreator
1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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