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

    Class SubGraph

    Inheritance
    System.Object
    AbstractMaterialGraph
    SubGraph
    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.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.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.OnEnable()
    Namespace: UnityEditor.ShaderGraph
    Syntax
    public class SubGraph : AbstractMaterialGraph, ISerializationCallbackReceiver, IGenerateProperties, IGeneratesBodyCode, IGeneratesFunction

    Properties

    activeNodes

    Declaration
    public IEnumerable<AbstractMaterialNode> activeNodes { get; }
    Property Value
    Type Description
    IEnumerable<AbstractMaterialNode>

    graphInputs

    Declaration
    public IEnumerable<IShaderProperty> graphInputs { get; }
    Property Value
    Type Description
    IEnumerable<IShaderProperty>

    graphOutputs

    Declaration
    public IEnumerable<MaterialSlot> graphOutputs { get; }
    Property Value
    Type Description
    IEnumerable<MaterialSlot>

    outputNode

    Declaration
    public SubGraphOutputNode outputNode { get; }
    Property Value
    Type Description
    SubGraphOutputNode

    Methods

    AddNode(INode)

    Declaration
    public override void AddNode(INode node)
    Parameters
    Type Name Description
    INode node
    Overrides
    AbstractMaterialGraph.AddNode(INode)

    CollectShaderProperties(PropertyCollector, GenerationMode)

    Declaration
    public override void CollectShaderProperties(PropertyCollector collector, GenerationMode generationMode)
    Parameters
    Type Name Description
    PropertyCollector collector
    GenerationMode generationMode
    Overrides
    AbstractMaterialGraph.CollectShaderProperties(PropertyCollector, GenerationMode)

    GenerateNodeCode(ShaderGenerator, GraphContext, GenerationMode)

    Declaration
    public void GenerateNodeCode(ShaderGenerator visitor, GraphContext graphContext, GenerationMode generationMode)
    Parameters
    Type Name Description
    ShaderGenerator visitor
    GraphContext graphContext
    GenerationMode generationMode
    Implements
    IGeneratesBodyCode.GenerateNodeCode(ShaderGenerator, GraphContext, GenerationMode)

    GenerateNodeFunction(FunctionRegistry, GraphContext, GenerationMode)

    Declaration
    public void GenerateNodeFunction(FunctionRegistry registry, GraphContext graphContext, GenerationMode generationMode)
    Parameters
    Type Name Description
    FunctionRegistry registry
    GraphContext graphContext
    GenerationMode generationMode
    Implements
    IGeneratesFunction.GenerateNodeFunction(FunctionRegistry, GraphContext, GenerationMode)

    GenerateSubGraphFunction(String, FunctionRegistry, GraphContext, ShaderGraphRequirements, GenerationMode)

    Declaration
    public void GenerateSubGraphFunction(string functionName, FunctionRegistry registry, GraphContext graphContext, ShaderGraphRequirements reqs, GenerationMode generationMode)
    Parameters
    Type Name Description
    System.String functionName
    FunctionRegistry registry
    GraphContext graphContext
    ShaderGraphRequirements reqs
    GenerationMode generationMode

    GetPreviewProperties()

    Declaration
    public IEnumerable<PreviewProperty> GetPreviewProperties()
    Returns
    Type Description
    IEnumerable<PreviewProperty>

    OnAfterDeserialize()

    Declaration
    public override void OnAfterDeserialize()
    Overrides
    AbstractMaterialGraph.OnAfterDeserialize()
    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