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"

how to use a single switch to toggle different lights

Hi Guys

I'm quite new with UE. I have been working in a lighting design project but I'm struggling with switching different lighting scenes. I have 3 lighting scenes: Welcome scene (all lights on), Accent scene (Downlights on only), Ambient scene (Cove and decorative on only)

what I need to do is: click one scene and disable the others 2. ie. I click ambient scene button and accent and welcome are off (disable)

Some how my lighting scenes are overwriting each other however, I do not want that. I want to have separate scenes with their own lights.

I already link with dispatchers a control plate widget with my level blueprint.

I hope someone could help me.

many thanks.

attached my level blueprint for your easy referencealt text

Product Version: UE 4.20
printscreen.jpg (3.5 MB)
more ▼

asked Nov 20 '18 at 06:53 AM in Using UE4

avatar image

3 1 3

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

1 answer: sort voted first

It is very hard to tell what is wrong because your blueprint is really messy. Also you do not need dispatchers and flip-flops for this.

The easiest method for now is this. I suggest you create three functions:

1) ToggleWelcomeScene

2) ToggleAccentScene

3) ToggleAmbientScene.

Each function should have one input - boolean. When you press on Welcome, call ToggleWelcomeScene with true input, ToggleAccentScene with false and ToggleAmbientScene with false. Do correspondingly for the rest two buttons.

Then inside every function use SetVisibility and connect the value from function input to it, so that you do not need to repeat code.

Everything should look something like this:

alt text

alt text

example-1.png (133.2 kB)
example-2.png (111.6 kB)
more ▼

answered Nov 20 '18 at 08:42 AM

avatar image

345 4 4 12

avatar image tonydit Nov 21 '18 at 08:11 AM


Problem solved, Thank you very much.

I this case I still need the dispatchers because I created the control plate (buttons) in a widget blueprint. I thought dispatcher was the best way to link/communicate widget blueprint (control plate design) with level blueprint (where my light points are).

Again, many thanks.

(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