destroying actor still flashes for split second
mshuraih
Member, PRO Posts: 179
I have a button when it is pressed it turns index attribute from 0 to 1 and when press again it goes back to 0. this button it spwan actor when it pressed and when it pressed again ( index attribute 0 ) the actor is destroyed.
i had to add a timer ( 0.1 sec delay ) before spawning the actor to keep the actor alive ( i dont quite understand why but it works fine) my problem is when i press the button again the actor does get destroyed but it flashes again for a split of second then disappear. any input why that happens and how to get rid of it? thank you guys!