O'Reilly logo

Building Levels in Unity by Volodymyr Gerasimov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

What are Materials?

Objects are rendered in Unity with the help of Shaders: chunks of complex code that can be created in Unity's MonoDevelop. However, there is a much easier way to work with Shaders, and that's through Materials. Materials allow the adjustment of properties and assignment of assets to Shaders without any programming knowledge.

Materials in Unity

Upon importing assets earlier, you probably noticed that Unity also created a folder called Materials in each asset folder. By default, each GameObject should have a Material assigned to it—if it doesn't it will be rendered pink, just like we've witnessed at the beginning of this chapter when tried to recreate primitives with components. During asset import, Unity used the name of the Shader ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required