Unreal Engine 4 (UE4) How to turn a light on and off using a box trigger (A very quick example)
Share
Add a light into the level from the content browser. In this example, a point light is used. From the content browser, add a box trigger. To add an event for the trigger, select the trigger and in the detail panel, under blueprints heading, add an event for the trigger a BeginOverlap Event. A blueprint graph will appear with the BeginOverlap event in the graph. To access the light's features and properties, go to the level and select the light. Go back to the blueprint graph and right click in the graph to get the context menu. Type toggle visibility, or drill down into the menu until you find that property. A reference to the light will appear and a connection and a node for the toggle visibility will also appear. Now, only an execution white wire can be connected from the Begin Overlap event to the toggle visibility function.