Accessing components of SkyLight through blueprints

I can’t seem to access the components of SkyLight through blueprints.

What I want to do is shifting the color to black or set the intensity of the Skylight to 0 at night using a timeline but i get runtime errors (Accessed none trying to read property) after the PIE session. Am I doing it wrong or is it a bug? Can someone try and access either the intensity or color of the Skylight through blueprints? As you can see in the picture i´ve detached the links to my Skyline but the directional light works like a charm.

I´m a noob when it comes to blueprints so if I did something wrong please explain clearly. Thanks.

Make sure you actually have the skylight referenced that is in your scene.

  • Select it in your level and right-click in your level-blueprint.
  • You’ll have an entry that is named “create a Reference to Skylight”
  • Click on the entry and copy the logic that is in the attached image.

This should fix your accessed none issues.

Thanks, I solved it somehow by making a new blueprint out of my Skylight.