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

    Class UVMaterialSlot

    Inheritance
    System.Object
    MaterialSlot
    Vector2MaterialSlot
    UVMaterialSlot
    Inherited Members
    Vector2MaterialSlot.defaultValue
    Vector2MaterialSlot.value
    Vector2MaterialSlot.ConcreteSlotValueAsVariable(AbstractMaterialNode.OutputPrecision)
    Vector2MaterialSlot.AddDefaultProperty(PropertyCollector, GenerationMode)
    Vector2MaterialSlot.GetPreviewProperties(List<PreviewProperty>, String)
    Vector2MaterialSlot.valueType
    Vector2MaterialSlot.concreteValueType
    MaterialSlot.displayName
    MaterialSlot.RawDisplayName()
    MaterialSlot.CreateMaterialSlot(SlotValueType, Int32, String, String, SlotType, Vector4, ShaderStageCapability, Boolean)
    MaterialSlot.slotReference
    MaterialSlot.owner
    MaterialSlot.hidden
    MaterialSlot.id
    MaterialSlot.priority
    MaterialSlot.isInputSlot
    MaterialSlot.isOutputSlot
    MaterialSlot.slotType
    MaterialSlot.isConnected
    MaterialSlot.shaderOutputName
    MaterialSlot.stageCapability
    MaterialSlot.hasError
    MaterialSlot.IsCompatibleWith(MaterialSlot)
    MaterialSlot.IsCompatibleStageWith(MaterialSlot)
    MaterialSlot.ConvertConcreteSlotValueTypeToPropertyType(ConcreteSlotValueType)
    MaterialSlot.Equals(ISlot)
    MaterialSlot.Equals(Object)
    MaterialSlot.GetHashCode()
    Namespace: UnityEditor.ShaderGraph
    Syntax
    public class UVMaterialSlot : Vector2MaterialSlot, IMaterialSlotHasValue<Vector2>, IMayRequireMeshUV

    Constructors

    UVMaterialSlot()

    Declaration
    public UVMaterialSlot()

    UVMaterialSlot(Int32, String, String, UVChannel, ShaderStageCapability, Boolean)

    Declaration
    public UVMaterialSlot(int slotId, string displayName, string shaderOutputName, UVChannel channel, ShaderStageCapability stageCapability = ShaderStageCapability.All, bool hidden = false)
    Parameters
    Type Name Description
    System.Int32 slotId
    System.String displayName
    System.String shaderOutputName
    UVChannel channel
    ShaderStageCapability stageCapability
    System.Boolean hidden

    Properties

    channel

    Declaration
    public UVChannel channel { get; set; }
    Property Value
    Type Description
    UVChannel

    Methods

    CopyValuesFrom(MaterialSlot)

    Declaration
    public override void CopyValuesFrom(MaterialSlot foundSlot)
    Parameters
    Type Name Description
    MaterialSlot foundSlot
    Overrides
    Vector2MaterialSlot.CopyValuesFrom(MaterialSlot)

    GetDefaultValue(GenerationMode)

    Declaration
    public override string GetDefaultValue(GenerationMode generationMode)
    Parameters
    Type Name Description
    GenerationMode generationMode
    Returns
    Type Description
    System.String
    Overrides
    MaterialSlot.GetDefaultValue(GenerationMode)

    InstantiateControl()

    Declaration
    public override VisualElement InstantiateControl()
    Returns
    Type Description
    VisualElement
    Overrides
    Vector2MaterialSlot.InstantiateControl()

    RequiresMeshUV(UVChannel, ShaderStageCapability)

    Declaration
    public bool RequiresMeshUV(UVChannel channel, ShaderStageCapability stageCapability)
    Parameters
    Type Name Description
    UVChannel channel
    ShaderStageCapability stageCapability
    Returns
    Type Description
    System.Boolean
    Implements
    IMayRequireMeshUV.RequiresMeshUV(UVChannel, ShaderStageCapability)
    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