(Mobile Specific) changing light color during game possible?

Again me and again mobile related stuff.

In Unity I can add directional light and change it’s color/intensity in-game on mobile device. Thanks to that my shooting effects are looking good.

How can I achieve shooting lighting effect in UE4 on Mobile? I tried with color grading but it isn’t looking good.

Anyone can help me out?

Hi Intoxicat3,

You can find the information you are looking for on our Lighting for Mobile Platforms.

Just go about setting this through your level Blueprint.

As for the shooting lighting effect? Can you post a screen shot or illustrate what you are trying to accomplish?

Thank you!

Tim

What I wan’t to accomplish is just light up space near weapon on Mobile, exactly like you guys are lighting up in Shooter Example when shooting.

I’ve added light to my blueprint (both mobile and stationary) both spot and directional and tried to change color - hoped that it will change weapon color but nothing is happening.

Are you referring to the muzzle fire that lights up when you shoot the weapon?

On the documentation page that was previously linked, the only lights that are capable of changing color during gameplay is lights that can be stationary. The directional light is the only one that is stationary. The spot light and point light are both static.

You could always set up a point light that is triggered within the BP to come on during an action. It could have the set color you’d like then be toggled off.

The change light for stationary directional is functional.

You can test this in the directional by (This is what i did for a quick setup to test) having a “event begin play” node, run that to a delay (set time to a few seconds) > Set light color node (with the target being the directional light from your scene outliner) > on the set light color node run a pin from ‘new light color’ > Make Linear color > punch in a value (i put in 1 in R channel to be full red to easily see.)

For the static to setup you could do the same first two nodes > Toggle Visibility (with the target being the point or spot light that is static) > watch the light turn off.

Being able to play around with some of these features in Blueprints should get you the result you’re looking for. It might require a little bit of work and thinking outside the box. :slight_smile:

I hope this helps!

Tim

Thanks Tim - it’;s working from Level Blueprint!

Last thing: can we layer objects that will be lighted up with some light source? I’m referring to Lighting Channels from UE3.

Glad it’s working for you now! :slight_smile:

But currently we do not have light channels within UE4. This has been entered as a feature request but it is currently not on the Trello Roadmap for features to implement.

Tim

Thanks for info. Lighting channels was really useful in UE3 hope UE4 will have it as well. Again - thanks for help!