Importing from the asset store

estimated time : 2mn
ingredients needed : Unity

Detailed Steps

Just a quick explanation on how to import a 3d soccer ball in our scene using the built in asset store window.

00:00 Opening the asset store

If the Asset store window isn’t available, make it visible by clicking in the top menu Window/Asset Store.

00:08 Choosing the wanted asset

Now let’s search for a pretty soccer ball, in 3D please -as we’re working on a 2.5D game let’s be lazy- we can use a 3D ball instead drawing all the animation steps of a rolling ball by ourselves, we’ll just animate it with rotation effects later.
Search for soccer ball, or ball, and while we’re at it, only choose free assets, you wouldn’t want to lost all your funds with pretty AAA assets for a prototype. Save it for later.

00:26 Importing asset

After clicking import, we have a look at the asset directory that will be imported; for this one it comes with its own directories (meshes,textures..), but it comes with the directory Prefabs too. We already have our Prefabs dir, so in order to don’t loose our head with multiple clone folders, we just drag & drop the soccer ball prefab in our Prefabs folder, and then delete the Prefabs of the soccer original asset folder.

01:09 Using Prefab

Just drag & drop the ball from the Prefabs folder directly onto our scene. As usual don’t forget to reset its transform position.

A quick note about prefabs

When you have GameObjects that you’ll need to create multiple times on a same scene (some coins for example), you can always copy/past the same object multiple times, it will do the job alright.
But if you need to change the color of your 100 coins that you’ve just disposed on scene, Prefabs will be more efficient than manually edit the color of all your coins.
When you have a prefab, you store a main GameObject that will be used as a template, and once you change any property of the GameObject and applies it, it will change the same property of all its copies on scene.





Leave a Reply