6 Software Practices to Keep, Shed, and Adopt in Unity

Shed: Keep it all in code

By simply setting a “Patrol Position” to an empty Game Object, you’ll already have a neat visual game editing experience.

Adopt: Write your own Custom Editors and Property Drawers

Custom Property Drawer for Interactable Effects
Custom Property Drawer for Interactable Effects
An example “Interactable” component allows setting effects when the player initiates an interaction.

Keep: Singletons tend to be a code smell

Shed: Get comfortable with some globals

Person playing Nintendo Switch
Person playing Nintendo Switch
Photo by Kelly Sikkema via Unsplash

Adopt: The Inspector can be your injection framework

Keep: Unit- and Integration Tests are Always Good

Software Engineer living in Brooklyn, NY. MIT Computer Science S.B. ’13, M.Eng. ‘14. From Amman, Jordan. Interested in politics, current affairs, and technology

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