Instantiating and Destroying Objects in Unity
<p>“Destroy objects!? But I don’t want to lose all the programming I’ve put into this!”</p>
<p>It’s not destroying as in deleted forever, you have to start over. It’s destroying as in deleting your Game Object from the scene so your console doesn’t get bogged down by many objects you can’t even see.</p>
<p>But we will revisit that later. Before you can start deleting objects from view, you must instantiate it. Instantiating is a fancy word for spawning.</p>
<p>So let’s get started spawning our Game object. First up, make sure you are inside your Player Script and putting this under void Update: Calculate movement.</p>
<p><a href="https://medium.com/@jmick.work23/instantiating-and-destroying-objects-in-unity-2d2840500c2d"><strong>Website</strong></a></p>