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. 

Casting To UI Widget


I have created a HUD with an oxygen Bar on the left and a Box on the right. https://i.imgur.com/j3G74Nq.png

I have connected the oxygen bar to my player health using a binding. As time in the game goes on the oxygen gets lower. I have done so using this. Setting Player Health to drop over a timeline. https://i.imgur.com/TisJLbo.png

Casting Player Health into the HUD binding https://i.imgur.com/ABpR9nS.png

It works well and the bar in my HUD lowers over time. Excellent

My Problem: I am attempting to create a blueprint actor that when collision happens plays a sound and then stops. When this sound plays I would like an image to appear in the hud.

So I created a box that when overlapped it plays the sound and starts an interpolation between two variables. https://i.imgur.com/t8Ybg4j.png

I want to use this interpolation variable to control the image being displayed on the HUD. So I want to bind the the alpha of the image. My first step is to get the casting to work before attempting to attach to the alpha only.

This is the part where I get stuck.

I currently have https://i.imgur.com/hEFGFqj.png

My Problem is that I can't find what I should be plugging into the Cast to BP_Sound as the objective.

Am I casting properly?

Product Version: UE 4.18
more ▼

asked Mar 14 '18 at 03:10 AM in Blueprint Scripting

avatar image


(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