Answers for "add particles to unity script"

C#
1

how to instatiate particles in unity

public ParticleSystem particles;
Instantiate(particles, transform.position, Quaternion.identity);
Posted by: Guest on September-03-2021
0

unity set particle properties through script

//Example to set a Particle Systems Emission Rate over Time.

// Get the emission module.
var emissionModule = GetComponent<ParticleSystem>().emission;

// Enable it (if its not) and set a value
emissionModule.enabled = true;
emissionModule.rateOverTime = 20;

//V Check source for more examples V
Posted by: Guest on February-12-2021

C# Answers by Framework

Browse Popular Code Answers by Language