Change Environment Light In Game


My question might be a bit of a “newbie” thing. But how do you change the color of the environment in game?

I’m trying to change the color of a directional light by making it a BP and then using “Set Light Color” when colliding with a Trigger Box but I’m not sure how should I do it.

I tried doing it like this, but I’m not really sure how Casting works yet.

Thank you for taking the time to answer.

The light isn’t doing the overlapping, the player is. You need to cast to your type of player ( first or third person ), and then get a reference to the light with ‘GetActorOfClass’ and do this.

1 Like

Thank you so much for your answer, I feel like I understand Casting a little bit more.

Basically casting is like checking the type of something :slight_smile:

1 Like