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

    Class MaterialGraph

    Inheritance
    System.Object
    AbstractMaterialGraph
    MaterialGraph
    Inherited Members
    AbstractMaterialGraph.owner
    AbstractMaterialGraph.properties
    AbstractMaterialGraph.addedProperties
    AbstractMaterialGraph.removedProperties
    AbstractMaterialGraph.movedProperties
    AbstractMaterialGraph.guid
    AbstractMaterialGraph.GetNodes<T>()
    AbstractMaterialGraph.addedNodes
    AbstractMaterialGraph.removedNodes
    AbstractMaterialGraph.pastedNodes
    AbstractMaterialGraph.edges
    AbstractMaterialGraph.addedEdges
    AbstractMaterialGraph.removedEdges
    AbstractMaterialGraph.previewData
    AbstractMaterialGraph.path
    AbstractMaterialGraph.ClearChanges()
    AbstractMaterialGraph.AddNode(INode)
    AbstractMaterialGraph.RemoveNode(INode)
    AbstractMaterialGraph.Connect(SlotReference, SlotReference)
    AbstractMaterialGraph.RemoveEdge(IEdge)
    AbstractMaterialGraph.RemoveElements(IEnumerable<INode>, IEnumerable<IEdge>)
    AbstractMaterialGraph.RemoveEdgeNoValidate(IEdge)
    AbstractMaterialGraph.GetNodeFromGuid(Guid)
    AbstractMaterialGraph.GetNodeFromTempId(Identifier)
    AbstractMaterialGraph.ContainsNodeGuid(Guid)
    AbstractMaterialGraph.GetNodeFromGuid<T>(Guid)
    AbstractMaterialGraph.GetEdges(SlotReference, List<IEdge>)
    AbstractMaterialGraph.CollectShaderProperties(PropertyCollector, GenerationMode)
    AbstractMaterialGraph.AddShaderProperty(IShaderProperty)
    AbstractMaterialGraph.SanitizePropertyName(String, Guid)
    AbstractMaterialGraph.SanitizePropertyReferenceName(String, Guid)
    AbstractMaterialGraph.RemoveShaderProperty(Guid)
    AbstractMaterialGraph.MoveShaderProperty(IShaderProperty, Int32)
    AbstractMaterialGraph.GetShaderPropertyIndex(IShaderProperty)
    AbstractMaterialGraph.ReplacePropertyNodeWithConcreteNode(PropertyNode)
    AbstractMaterialGraph.ValidateGraph()
    AbstractMaterialGraph.ReplaceWith(IGraph)
    AbstractMaterialGraph.OnBeforeSerialize()
    AbstractMaterialGraph.OnAfterDeserialize()
    AbstractMaterialGraph.OnEnable()
    Namespace: UnityEditor.ShaderGraph
    Syntax
    public class MaterialGraph : AbstractMaterialGraph, ISerializationCallbackReceiver, IGenerateProperties, IShaderGraph

    Properties

    masterNode

    Declaration
    public IMasterNode masterNode { get; }
    Property Value
    Type Description
    IMasterNode

    Methods

    GetShader(String, GenerationMode, out List<PropertyCollector.TextureInfo>, List<String>)

    Declaration
    public string GetShader(string name, GenerationMode mode, out List<PropertyCollector.TextureInfo> configuredTextures, List<string> sourceAssetDependencyPaths = null)
    Parameters
    Type Name Description
    System.String name
    GenerationMode mode
    List<PropertyCollector.TextureInfo> configuredTextures
    List<System.String> sourceAssetDependencyPaths
    Returns
    Type Description
    System.String
    Implements
    IShaderGraph.GetShader(String, GenerationMode, out List<PropertyCollector.TextureInfo>, List<String>)

    LoadedFromDisk()

    Declaration
    public void LoadedFromDisk()
    Implements
    IShaderGraph.LoadedFromDisk()
    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