- Home /
 
               Question by 
               staryzhelios · Jun 18, 2019 at 09:19 PM · 
                uiparticlesparticle system  
              
 
              Why particle system not show on my UI canvas? HELPPP
I want to trigger particle system when panel is pop up. but not showing, does anyone know why???
I tried no many times..cant solve !
this is code to call particle when win canvas pop up
 using System.Collections;
 using System.Collections.Generic;
 using UnityEngine;
 
 public class StarParticle : MonoBehaviour
 {
 
     public GameObject wincanvas, starsky;
 
     public Transform spa;
 
     void Start(){
 
         spa.GetComponent<ParticleSystem> ().enableEmission = false;
     }
     // Update is called once per frame
     void Update()
     {
         if(wincanvas.activeInHierarchy){
             //Instantiate(starsky, transform.position, Quaternion.identity);
             starsky.SetActive(true);
 
             spa.GetComponent<ParticleSystem>().enableEmission = true;
             StartCoroutine (stopSpa());
             //Destroy(gameObject, 2f);
 
 
         }
 
         IEnumerator stopSpa()
         {
             yield return new WaitForSeconds(.4f);
             spa.GetComponent<ParticleSystem>().enableEmission = false;
         }
     }
 }
 
already tried the texture render on cullingmask for new camera not working also..
               Comment
              
 
               
              Your answer
 
 
             Follow this Question
Related Questions
Simulate Particle System within Unity UI 1 Answer
How to achieve specific blurred spark-like particle effect in UI 0 Answers
Is it possible to place a complex particle system as a sub-emitter? 1 Answer
Sudden green rings on particles. Only visible in Scene view 1 Answer
Particle System - How can I make sure top parent end last? 1 Answer
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                