Advertisement
Hyluss

[Unity] Particle System basic info

Nov 24th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.28 KB | None | 0 0
  1. ParticleSystem ps = frontTypeList.List.Find(x => x.type == cd.Type).particleSystem;
  2. ParticleSystem.MainModule main = ps.main;
  3. main.playOnAwake = false;
  4. ParticleSystemRenderer psr = ps.GetComponent<ParticleSystemRenderer>();
  5. psr.sortingLayerName = "Particle";
  6. Instantiate(ps, parent);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement