Question by
Scott778 · Jan 13, 2016 at 02:35 PM ·
scripting beginner
Despawning items spawned with InvokeRepeating
Hello, I am just learning to use InvokeRepeating and in my little test I have items spawn in and then move off the screen. Once they leave the screen I would like to despawn them.
Anyone know the best way I could do this? Would really appreciate it. Thank you!
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612060048im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
HELP! How to make Update function start after delay? C# 2 Answers
How can I keep a score counter of how many points the player has collected on the screen? 1 Answer
Need help disabling a script in another GameObject 1 Answer
[C#] Instantiating via class references (Need help understanding) 1 Answer
is there a way to script different characters within a group. 0 Answers