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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

Connecting Level Blueprint and HUD Widget blueprint

Yo mates:


Press a button in Main menu HUD to change the time of day to day or night. The level beings by night in default. The Main Menu widget is in the same level as game.


Directional light, Sky sphere

LEVEL Blueprint (Works):

Here I have assigned a button 'i' to change from night to day. This works perferctly. Even in main menu if I press 'i' the night changes to day.alt text

WIDGET Blueprint (same code, doesnt work):

Here the Keepo var is directional light BP and sky sphere var is sky sphere BP. So when I click play, it should change the sun direction. Same code as level one, but this doesnt work. Is there a problem with the actor BP reference then? alt text

THanks for the help mates.


Product Version: UE 4.8
level.png (121.4 kB)
widget.png (189.5 kB)
more ▼

asked Jul 24 '15 at 11:11 AM in Blueprint Scripting

avatar image

56 7 8 10

avatar image RalphWiggum Jul 24 '15 at 12:29 PM

I know there are lots of experts here. Please take like 2 minutes to answer my question pls :(

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

Another GREAT hack I saw in another thread.

1) Create custom event in level BP and do all the stuff you wanna do

2) In HUD BP just execute console command and type ce customevent

works wonders actually. Easy way to connect HUD and level.

more ▼

answered Jul 27 '15 at 08:30 AM

avatar image

56 7 8 10

avatar image Goldenhead15 Aug 31 '16 at 02:04 PM

can that also work with player bp?

(comments are locked)
10|2000 characters needed characters left

Ya never mind, as usual not a lot of response.

I am using a round about method of material parameter collection (which is easy to globally use i feel).After creating the parameter from add new>materials and textures, In the widget blueprint if day button is pressed the scalar parameter is 0 and night its 1. So I can use get scalar parameter in the level blueprint and set day when the scalar parameter value = 0 and night when = 1.

Imma start using scalar parameter to communicate between everything from now on.

more ▼

answered Jul 24 '15 at 01:10 PM

avatar image

56 7 8 10

(comments are locked)
10|2000 characters needed characters left
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