Is it possible to switch between trail color presets in code?

I’ve looked all over the internet, but is it possible to switch between trail color presets with code?

use GetComponent() and then you can set the colour with colorGradient, startColor or endColor. Example:

GetComponent<TrailRenderer>().startColor = Color.white;

All this sort of stuff can be found in the Unity documentation, the page for the TrailRenderer can be found here.

@KimJammer Have you found an answer to your question, bc I can’t find nothing about changing the trail color presets with code.