Simplicity and reuse

Simplicity and reuse work hand-in-hand and are important techniques when designing levels. Simplicity is about breaking down the level into reusable blocks or modules, which can be encoded into prefabs. It encourages us to avoid over specificity, that is, to avoid making assets too specific for one purpose. Sometimes this cannot be avoided, but where possible, it should be. For example, when designing a straight-section prefab for a corridor scene, it can be developed with or without a statue mesh. Including the statue mesh alongside the corridor as a single prefab is more specific than omitting the mesh. Therefore, in this scenario, try creating the corridor without the statue, and only add the statue to specific straight-sections ...

Get Mastering Unity 2017 Game Development with C# - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.