If i change offset value then it is change for just one end point not for all points.
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:
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.
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