Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ParticleSystem ps = frontTypeList.List.Find(x => x.type == cd.Type).particleSystem;
- ParticleSystem.MainModule main = ps.main;
- main.playOnAwake = false;
- ParticleSystemRenderer psr = ps.GetComponent<ParticleSystemRenderer>();
- psr.sortingLayerName = "Particle";
- Instantiate(ps, parent);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement