Day/Night Cycle

Hey Guys,

I hope I’m posting in the right place. Anyway, I have a simple day/night cycle set up that works perfectly, but I can’t set it up so that when it turns to night-time, all of the point lights and/or spotlights come on.

Can anybody recommend any solutions? I have attached my BP for reference.


Sorry for my English

  1. Create a GameInstance to store a bool variable (ex: IsDay)
    Exemple: UE4 - Using Game Instances & Persistent Variables - YouTube

  2. Get Sun height from pitch

  3. When SunHeight is >0 => set booll variable IsDay to true

  4. Create BP that get value of IsDay to control Lights or other objects