Changing parameters at runtime

Sometimes a game forces you into strange situations. One of the situations I can remember in a game is when we needed to change the particle system color to match a certain color the player had collected. In such a case, it was not possible to define a color previously, and the particle system needed to be flexible enough to match the color the player already had, keeping in mind that every time the scenario is different and the player holds a different color.

Such a situation normally is not easy, but thankfully, with Unreal Engine, you can define the parameters that you might need to change at runtime. Then, changing its value is a matter of setting a new value to the tagged parameter. But how?

  1. First you need to ...

Get Mastering Unreal Engine 4.X now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.