Version: Unity 6.6 Alpha (6000.6)
Language : English
Creating a hierarchy of materials
Create a material variant

Material variants

A material variant is a materialAn asset that defines how a surface should be rendered. More info
See in Glossary
that inherits the properties of a parent material. Use material variants to create a hierarchy of materials, to help you manage and maintain groups of similar materials more efficiently than creating duplicate copies.

For example, use material variants to manage outfits with a variety of color schemes, damaged and undamaged versions of scenery, or shiny and weathered instances of scenery.

You can do the following more efficiently with material variants compared to duplicate copies:

  • Change a parent material and automatically propagate those changes down to all the child materials.
  • Copy property values from a child material to its parent.
  • Prevent child materials modifying specific properties.
  • Change the parent of a child material.

Limitations

You can’t use material variants to do the following:

  • Improve performance or scalability.
  • Change materials at runtime.

Similarities to prefab variants

Material variants are similar to prefab variants for GameObjects, but with the following key differences:

  • You can change the parent of a material variant.
  • You can lock properties so child materials can’t override them.

Additional resources

Creating a hierarchy of materials
Create a material variant
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961