How do I change the gradient of the Trail Renderer via code? I’ve made the gradients I need and saved them as a preset, do I need to use those with the code?
There is a “colorGradient” property on LineRenderer: Unity - Scripting API: LineRenderer.colorGradient. Just assign that property to your gradient.