docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method RegisterMaterialForInspector

    RegisterMaterialForInspector()

    List all the materials that need to be displayed at the bottom of the component. All the materials gathered by this method will be used to create a Material Editor and then can be edited directly on the custom pass.

    Declaration
    public override IEnumerable<Material> RegisterMaterialForInspector()
    Returns
    Type Description
    IEnumerable<Material>

    An enumerable of materials to show in the inspector. These materials can be null, the list is cleaned afterwards

    Overrides
    CustomPass.RegisterMaterialForInspector()
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)