[SUPPORT] Line of Sight Visualization

@Bebop890 Hi, here are the steps for changing the color of the visualization at runtime:

I. Open the collapsed node graph SetUpVisualizationMesh within the Event Graph of BPC_LoSVisualizer.

II. Now add the following nodes at the start of this graph. Since we want to change the color of the material at runtime, we’re going to create a dynamic material instance using the default material as a base.

III. Within the same graph, pass the new dynamic material instance to the InitializeVisualizationMesh functions.

IV. Finally we’ll add a new function to change the color of this material instance using its Color parameter.

And that’s it. You can now call this function whenever you want to change the color by passing in the new color through the input parameter.

I’m also adding this feature in through a mini update. So it should be available out of the box when you create a new project in a day or two.

Edit: This feature has been added in the latest update and the system now allows runtime color customization out of the box.

1 Like