Version: 2017.1
public bool generateLightingData ;

説明

Configures a trail to generate Normals and Tangents. With this data, Scene lighting can affect the trail via Normal Maps and the Unity Standard Shader, or your own custom-built Shaders.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { private TrailRenderer tr;

void Start() { tr = GetComponent<TrailRenderer>(); tr.material = new Material(Shader.Find("Standard")); tr.generateLightingData = true; } }