docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method OnMaterialPreviewGUI

    OnMaterialPreviewGUI(MaterialEditor, Rect, GUIStyle)

    Override the material preview GUI.

    Declaration
    public override void OnMaterialPreviewGUI(MaterialEditor materialEditor, Rect r, GUIStyle background)
    Parameters
    Type Name Description
    MaterialEditor materialEditor

    The current material editor.

    Rect r

    Preview rect.

    GUIStyle background

    Style for the background.

    Overrides
    ShaderGUI.OnMaterialPreviewGUI(MaterialEditor, Rect, GUIStyle)
    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)