Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

ParticleSystem.lights

Switch to Manual

Description

Script interface for 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; } }

Did you find this page useful? Please give it a rating: