We’ve made it a long way, it’s time we finally start switching over to our production 2D assets! In case you missed it, you can check out the last post where we added a new shield powerup.
Our challenge is to import our production assets add a new background to our scene.
Let’s get started.
Importing assets into Unity is incredibly simple. To download and import assets from the Asset Store, open the Package Manager from Window -> Package Manager and switch to "My Assets" from the Packages drop down at the top of the window. The assets tied to your Unity account will be listed and you can easily download and import them from this window.
If you’ve already downloaded the assets and want to import them, navigate to the Package Manager window and use the new "+" dropdown and choose to add from option for your file type.
I have the assets imported, now let’s add a GameObject with a SpriteRenderer. We’ll do this quickly by dragging and dropping the background sprite I want to use to the Hierarchy. I’ll do some repositioning to get it just right and into view.
For now, that’s all we need to do to bring in our first production asset. The game already looks better, and all we’ve done is add a background. We will definitely add more details later.
Stay tuned for the next post. Take care.