Journal 14 — Unity Prototype to Production— Ready for Art!

Chris Nielsen
2 min readApr 28, 2021

--

A big milestone after getting the basic gameplay addressed is to now change out all the primitive game objects with your actual artwork and scenery.

You can spend your own time developing your own art assets, you can search for several free assets, or you can purchase assets.

In this example, there was some fine-tuning necessary which you may or may not encounter in your development process:

— Check the script functions. In this case we had done the prototyping in 3D but needed to convert a few lines of code to 2D functions (i.e., OnTriggerEnter2D(Collider2D other).

— Check the game object collider, mesh renderer, and rigidbody components. In this case the art assets are in 2D, so a 3D mesh needed to be switched to a 2D sprite renderer, and the collider and rigidbody components need to be 2D.

— Check the scale of all assets, and their corresponding colliders. Also in this case, we had to adjust the laser projectile location in relation to the spaceship.

— Check the “Sorting Layer” under the Sprite Renderer. In this case we created a “Background” Layer for just the background, and the Enemy, Laser, and Player were all selected on a “Foreground” layer we created. The Foreground layer is located below the Background layer in the sorting list, so those objects are rendered above the background image and don’t blend in or appear behind parts of the background image. And because the Player, Laser, and Enemy are all on the same Foreground layer, they can interact with one another, so the triggers work and the Player can take damage.

— Check the custom tagging of game objects if you delete and replace the prototype primitives with custom art assets. In this case, we needed to confirm that “Player”, “Laser”, and “Enemy” tags were all selected correctly.

See the before and after below:

Unity Playmode — Before and After!

I appreciate your time stopping by.

Thanks!

--

--

Chris Nielsen
Chris Nielsen

Written by Chris Nielsen

An Engineering Manager consultant who is seeking additional skills using Unity 3D for game and application development.

No responses yet