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

    Class NodeUtils

    Inheritance
    System.Object
    NodeUtils
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: UnityEditor.Graphing
    Syntax
    public static class NodeUtils

    Methods

    CollectNodesNodeFeedsInto(List<INode>, INode, NodeUtils.IncludeSelf)

    Declaration
    public static void CollectNodesNodeFeedsInto(List<INode> nodeList, INode node, NodeUtils.IncludeSelf includeSelf = NodeUtils.IncludeSelf.Include)
    Parameters
    Type Name Description
    List<INode> nodeList
    INode node
    NodeUtils.IncludeSelf includeSelf

    ConvertConcreteSlotValueTypeToString(AbstractMaterialNode.OutputPrecision, ConcreteSlotValueType)

    Declaration
    public static string ConvertConcreteSlotValueTypeToString(AbstractMaterialNode.OutputPrecision p, ConcreteSlotValueType slotValue)
    Parameters
    Type Name Description
    AbstractMaterialNode.OutputPrecision p
    ConcreteSlotValueType slotValue
    Returns
    Type Description
    System.String

    DepthFirstCollectNodesFromNode<T>(List<T>, T, NodeUtils.IncludeSelf, List<Int32>)

    Declaration
    public static void DepthFirstCollectNodesFromNode<T>(List<T> nodeList, T node, NodeUtils.IncludeSelf includeSelf = NodeUtils.IncludeSelf.Include, List<int> slotIds = null)where T : class, INode
    Parameters
    Type Name Description
    List<T> nodeList
    T node
    NodeUtils.IncludeSelf includeSelf
    List<System.Int32> slotIds
    Type Parameters
    Name Description
    T

    FloatToShaderValue(Single)

    Declaration
    public static string FloatToShaderValue(float value)
    Parameters
    Type Name Description
    System.Single value
    Returns
    Type Description
    System.String

    GetAllEdges(INode)

    Declaration
    public static IEnumerable<IEdge> GetAllEdges(INode node)
    Parameters
    Type Name Description
    INode node
    Returns
    Type Description
    IEnumerable<IEdge>

    GetEffectiveShaderStage(MaterialSlot, Boolean)

    Declaration
    public static ShaderStage GetEffectiveShaderStage(MaterialSlot initialSlot, bool goingBackwards)
    Parameters
    Type Name Description
    MaterialSlot initialSlot
    System.Boolean goingBackwards
    Returns
    Type Description
    ShaderStage

    GetEffectiveShaderStageCapability(MaterialSlot, Boolean)

    Declaration
    public static ShaderStageCapability GetEffectiveShaderStageCapability(MaterialSlot initialSlot, bool goingBackwards)
    Parameters
    Type Name Description
    MaterialSlot initialSlot
    System.Boolean goingBackwards
    Returns
    Type Description
    ShaderStageCapability

    GetHLSLSafeName(String)

    Declaration
    public static string GetHLSLSafeName(string input)
    Parameters
    Type Name Description
    System.String input
    Returns
    Type Description
    System.String

    GetSlotDimension(ConcreteSlotValueType)

    Declaration
    public static string GetSlotDimension(ConcreteSlotValueType slotValue)
    Parameters
    Type Name Description
    ConcreteSlotValueType slotValue
    Returns
    Type Description
    System.String

    SlotConfigurationExceptionIfBadConfiguration(INode, IEnumerable<Int32>, IEnumerable<Int32>)

    Declaration
    public static void SlotConfigurationExceptionIfBadConfiguration(INode node, IEnumerable<int> expectedInputSlots, IEnumerable<int> expectedOutputSlots)
    Parameters
    Type Name Description
    INode node
    IEnumerable<System.Int32> expectedInputSlots
    IEnumerable<System.Int32> expectedOutputSlots
    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