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

    Class ViewDirectionMaterialSlot

    Inheritance
    System.Object
    MaterialSlot
    Vector3MaterialSlot
    SpaceMaterialSlot
    ViewDirectionMaterialSlot
    Inherited Members
    SpaceMaterialSlot.space
    SpaceMaterialSlot.CopyValuesFrom(MaterialSlot)
    Vector3MaterialSlot.defaultValue
    Vector3MaterialSlot.value
    Vector3MaterialSlot.ConcreteSlotValueAsVariable(AbstractMaterialNode.OutputPrecision)
    Vector3MaterialSlot.AddDefaultProperty(PropertyCollector, GenerationMode)
    Vector3MaterialSlot.GetPreviewProperties(List<PreviewProperty>, String)
    Vector3MaterialSlot.valueType
    Vector3MaterialSlot.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 ViewDirectionMaterialSlot : SpaceMaterialSlot, IMaterialSlotHasValue<Vector3>, IMayRequireViewDirection

    Constructors

    ViewDirectionMaterialSlot()

    Declaration
    public ViewDirectionMaterialSlot()

    ViewDirectionMaterialSlot(Int32, String, String, CoordinateSpace, ShaderStageCapability, Boolean)

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

    Methods

    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
    Vector3MaterialSlot.InstantiateControl()

    RequiresViewDirection(ShaderStageCapability)

    Declaration
    public NeededCoordinateSpace RequiresViewDirection(ShaderStageCapability stageCapability)
    Parameters
    Type Name Description
    ShaderStageCapability stageCapability
    Returns
    Type Description
    NeededCoordinateSpace
    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