Version: 2017.3
public ParticleSystem.LightsModule lights ;

説明

Access the particle system lights module.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour {

public Light lightPrefab;

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