How to change color on the travel path unreal engine4

If i change offset value then it is change for just one end point not for all points.

318534-6.png

I just copy the code in construction script and attach the pin. but changing the off set not perform any action. where to call that function update material gradient created in event graph.

What’s the point of crating functions / events when you’re not even calling them… Call both in the Construction Script to see changes in the editor.

During gameplay you’d update the material on Tick / Timer or using a Timeline:

Hope this makes sense.

I might have sent a wrong screenshot at some point, and did not test it enough (like at all), see if you can update the material loop:


Looking at this now, it may not be the best way to handle it. But again, I’m not sure what you’re going to use it for so it’s hard to advise, really. If I find the time at the end of the week, I can have a deeper look at this and try to replicate something similar to your picture.

Is this what you want or is this just a refence image?

So when hooked up to a Timeline:

I get this:

Image from Gyazo

You can flip it around if you want it to work the other way round. And then you’ll need to shift it further so it can work with a closed spline (if needed).

It seems like you’re not creating enough material instances or you’re trying to update one too many. You’d need show your current setup. And do tell if you’re a closed spline or not as it will matter here.

it is working. When i change off set it change for all points but then it give this error.

I know you’ve been asking about splines and all. But do look into ribbon particles on YT and see if that’s a result you’re interested in. Might be worth considering for this. Again, depends on what kind of interaction is needed further down the line.

I have tried particles system with max lifetime so that the color remain there for long time. But i just try another way so that i knew which is easy and best way for memory save. because i am not sure that this work done by particle system or in other way. And main things is that if my player stay still after walk then the particle (color line ) disappear behind it and i do not want that. i want the color stay in the level until level not cleared. Thats why i want to change the color of spline when player move on spline. but splinecomponentbeginoverlap not working. I think i have to take different spline for player and change color of spline as character move as you shown upper. ! alt text

it is still after change some points change color of

last point and leave middle points