Toggle Visibility Not Available Under Rendering

I’m trying to follow along with this video: [][1]

At 0:58, the demonstrator has a PointLight selected, right-clicks on an empty space in the blueprint editor, and selects “Toggle Visibility” under “Call Function on PointLight3 → Rendering” … see screenshot below:

OK, so when I try this, I have the PointLight selected, I’m in the Level Blueprint, but when I right-click and expand “Call Function on PointLight3 → Rendering”, all I get is “Set Actor Hidden in Game”… see screenshot below:

(OK, when I tried to upload a screenshot, I got the error “No such upload” ???) Trust me, though, it’s not there.

Now, granted, I can un-check “Context Sensitive” and find it… and I can manually add a reference to my PointLight and then wire up the PointLight to the “Target” socket in the “ToggleVisibility” function… but then I get this odd behavior where it creates:

  1. A PointLight reference to the PointLight3 object in the level
  2. An odd “Target LightComponent” middle box that says “Read the value of variable LightComponent LightComponent”
  3. The “ToggleVisibility” function then has an Error that says “Error This blueprint (self) is not a SceneComponent, therefore ‘Target’ must have a connection.”

Can anyone explain what is going on???

Hi Tulrath,

Blueprints have changed a bit since that tutorial was created. The way to do this now would be to add a Reference node to the PointLight, then drag off of this Reference and type Toggle Visibility. That will give you the node you’re looking for.

You will see slight changes and improvements like this from time to time. They are generally made to help with the stability of blueprints, especially when upgrading a project to a different version of the editor.

Cheers,

TJ