Unity3d Foundations: Creating & Destroying Game Objects

Simple Spawn at Point and Destroy when off-screen

Creating Objects at Runtime

Instantiate( gameObject, position, rotation );

Destroying Objects at Runtime

Destroy( gameObject );
explosionPrefab holds a VFX and SFX

Performance Concerns

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store