Search Unity

Material Overrides should be available to all pipelines

Discussion in 'General Graphics' started by SpacePrez, Jan 21, 2021.

  1. SpacePrez

    SpacePrez

    Joined:
    Aug 19, 2019
    Posts:
    7
    https://docs.unity3d.com/Packages/com.unity.rendering.hybrid@0.8/manual/material_overrides.html

    https://docs.unity3d.com/ScriptReference/MaterialPropertyBlock.html

    Creating a unique material for every possible configuration is time consuming and wasteful when many are identical if not for a single field being modified.

    MaterialPropertyBlock allows you to efficiently override these materials and use the same shaders.

    But it requires scripting to set up. There should be a very simple way to apply a MaterialPropertyBlock to a Material on a GameObject using just the Editor. This would save countless hours of development.

    This would also allow changes to one material to affect many objects which would otherwise have to have unique materials, otherwise requiring manual tweaks to all of them. Effectively, material variations, like a prefab variation.

    The MaterialOverrides script seems to accomplish this, but requires Hybrid Renderer support?

    Need some base solution for Unity to achieve this same result. Its too important.