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

    Class Texture2DMaterialSlot

    Inheritance
    System.Object
    MaterialSlot
    Texture2DMaterialSlot
    Texture2DInputMaterialSlot
    Inherited Members
    MaterialSlot.InstantiateControl()
    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.GetDefaultValue(GenerationMode)
    MaterialSlot.ConcreteSlotValueAsVariable(AbstractMaterialNode.OutputPrecision)
    MaterialSlot.ConvertConcreteSlotValueTypeToPropertyType(ConcreteSlotValueType)
    MaterialSlot.GetPreviewProperties(List<PreviewProperty>, String)
    MaterialSlot.Equals(ISlot)
    MaterialSlot.Equals(Object)
    MaterialSlot.GetHashCode()
    Namespace: UnityEditor.ShaderGraph
    Syntax
    public class Texture2DMaterialSlot : MaterialSlot

    Constructors

    Texture2DMaterialSlot()

    Declaration
    public Texture2DMaterialSlot()

    Texture2DMaterialSlot(Int32, String, String, SlotType, ShaderStageCapability, Boolean)

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

    Properties

    concreteValueType

    Declaration
    public override ConcreteSlotValueType concreteValueType { get; }
    Property Value
    Type Description
    ConcreteSlotValueType
    Overrides
    MaterialSlot.concreteValueType

    valueType

    Declaration
    public override SlotValueType valueType { get; }
    Property Value
    Type Description
    SlotValueType
    Overrides
    MaterialSlot.valueType

    Methods

    AddDefaultProperty(PropertyCollector, GenerationMode)

    Declaration
    public override void AddDefaultProperty(PropertyCollector properties, GenerationMode generationMode)
    Parameters
    Type Name Description
    PropertyCollector properties
    GenerationMode generationMode
    Overrides
    MaterialSlot.AddDefaultProperty(PropertyCollector, GenerationMode)

    CopyValuesFrom(MaterialSlot)

    Declaration
    public override void CopyValuesFrom(MaterialSlot foundSlot)
    Parameters
    Type Name Description
    MaterialSlot foundSlot
    Overrides
    MaterialSlot.CopyValuesFrom(MaterialSlot)
    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