First we put a point light into the scene, and then we turn it off by making the lights "Visible" attribute set to false.
|
|
V
Pretty enlightening stuff.
After that, we created the Blueprint. by having the light selected, we were able to create a reference node to this specific point light. Afterwards, we were able to create a node to toggle the visibility of the light by clicking and dragging off of the reference to the light. The advantage to creating a node this way is that you are only able to create nodes that are legally allowed to execute off of the node it dragged it from. Finally we connected the nodes to toggle the light with the node that executes at the beginning of run-time called "Event BeginPlay."
Here is the Blueprint.
And here is a video of it working!
No comments:
Post a Comment