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

    Class ColorRGBMaterialSlot

    Inheritance
    System.Object
    MaterialSlot
    Vector3MaterialSlot
    ColorRGBMaterialSlot
    Inherited Members
    Vector3MaterialSlot.defaultValue
    Vector3MaterialSlot.value
    Vector3MaterialSlot.valueType
    Vector3MaterialSlot.concreteValueType
    Vector3MaterialSlot.CopyValuesFrom(MaterialSlot)
    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.ConvertConcreteSlotValueTypeToPropertyType(ConcreteSlotValueType)
    MaterialSlot.Equals(ISlot)
    MaterialSlot.Equals(Object)
    MaterialSlot.GetHashCode()
    Namespace: UnityEditor.ShaderGraph
    Syntax
    public class ColorRGBMaterialSlot : Vector3MaterialSlot, IMaterialSlotHasValue<Vector3>

    Constructors

    ColorRGBMaterialSlot()

    Declaration
    public ColorRGBMaterialSlot()

    ColorRGBMaterialSlot(Int32, String, String, SlotType, Color, ColorMode, ShaderStageCapability, Boolean)

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

    Properties

    colorMode

    Declaration
    public ColorMode colorMode { get; set; }
    Property Value
    Type Description
    ColorMode

    Methods

    AddDefaultProperty(PropertyCollector, GenerationMode)

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

    ConcreteSlotValueAsVariable(AbstractMaterialNode.OutputPrecision)

    Declaration
    protected override string ConcreteSlotValueAsVariable(AbstractMaterialNode.OutputPrecision precision)
    Parameters
    Type Name Description
    AbstractMaterialNode.OutputPrecision precision
    Returns
    Type Description
    System.String
    Overrides
    Vector3MaterialSlot.ConcreteSlotValueAsVariable(AbstractMaterialNode.OutputPrecision)

    GetPreviewProperties(List<PreviewProperty>, String)

    Declaration
    public override void GetPreviewProperties(List<PreviewProperty> properties, string name)
    Parameters
    Type Name Description
    List<PreviewProperty> properties
    System.String name
    Overrides
    Vector3MaterialSlot.GetPreviewProperties(List<PreviewProperty>, String)

    InstantiateControl()

    Declaration
    public override VisualElement InstantiateControl()
    Returns
    Type Description
    VisualElement
    Overrides
    Vector3MaterialSlot.InstantiateControl()
    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