Version: 2017.1
public ParticleSystem.TrailModule trails ;

Description

Access the particle system trails module.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour {

void Start() { ParticleSystem ps = GetComponent<ParticleSystem>(); var trails = ps.trails; trails.enabled = true; trails.ratio = 0.5f; } }