- Home /
Question by
MrGarion · Nov 09, 2014 at 04:13 PM ·
particlesparticlesystemparticle
particleSystem.Play(); wont start
i wrote this code which i thought should work. the thing is that the particle wont start showing and i cant figure out why. The emitter should emitt for like 2 seconds and then stop.
im guessing that it is because it lies in the void Update function and it starts and stops in a millisecond. but i dont know.
here is the script:
using UnityEngine; using System.Collections;
public class BloodonHitP1: MonoBehaviour {
public Hit hit;
void Start () {
}
// Update is called once per frame
void Update () {
if (hit.wonTwo){
particleSystem.Play();
}
}
}
Comment
Your answer
Follow this Question
Related Questions
Change particles alpha / sharedMaterial 0 Answers
How is Limit Velocity Over Lifetime calculated? 0 Answers
How to destroy live particle in Shuriken 1 Answer
Tutorial for Jean Moreno's Cartoon FX?? 1 Answer
Particle Playback Error in 5.4 0 Answers