Class MaterialGraphPreviewGenerator | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class MaterialGraphPreviewGenerator

    Inheritance
    System.Object
    MaterialGraphPreviewGenerator
    Namespace: UnityEditor.ShaderGraph.Drawing
    Syntax
    public class MaterialGraphPreviewGenerator : IDisposable

    Constructors

    MaterialGraphPreviewGenerator()

    Declaration
    public MaterialGraphPreviewGenerator()

    Properties

    quad

    Declaration
    public static Mesh quad { get; }
    Property Value
    Type Description
    Mesh

    Methods

    CreateLight()

    Declaration
    protected static GameObject CreateLight()
    Returns
    Type Description
    GameObject

    Dispose()

    Declaration
    public void Dispose()

    DoRenderPreview(RenderTexture, Material, Mesh, PreviewMode, Boolean, Single, MaterialPropertyBlock)

    Declaration
    public void DoRenderPreview(RenderTexture renderTexture, Material mat, Mesh mesh, PreviewMode mode, bool allowSRP, float time, MaterialPropertyBlock properties = null)
    Parameters
    Type Name Description
    RenderTexture renderTexture
    Material mat
    Mesh mesh
    PreviewMode mode
    System.Boolean allowSRP
    System.Single time
    MaterialPropertyBlock properties
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023