Class AbstractShaderProperty<T> | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class AbstractShaderProperty<T>

    Inheritance
    System.Object
    AbstractShaderProperty<T>
    BooleanShaderProperty
    ColorShaderProperty
    CubemapShaderProperty
    GradientShaderProperty
    MatrixShaderProperty
    Texture2DArrayShaderProperty
    Texture3DShaderProperty
    TextureShaderProperty
    Vector1ShaderProperty
    VectorShaderProperty
    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.ShaderGraph
    Syntax
    public abstract class AbstractShaderProperty<T> : IShaderProperty
    Type Parameters
    Name Description
    T

    Properties

    defaultValue

    Declaration
    public abstract Vector4 defaultValue { get; }
    Property Value
    Type Description
    Vector4
    Implements
    IShaderProperty.defaultValue

    displayName

    Declaration
    public string displayName { get; set; }
    Property Value
    Type Description
    System.String
    Implements
    IShaderProperty.displayName

    generatePropertyBlock

    Declaration
    public bool generatePropertyBlock { get; set; }
    Property Value
    Type Description
    System.Boolean
    Implements
    IShaderProperty.generatePropertyBlock

    guid

    Declaration
    public Guid guid { get; }
    Property Value
    Type Description
    Guid
    Implements
    IShaderProperty.guid

    isBatchable

    Declaration
    public abstract bool isBatchable { get; }
    Property Value
    Type Description
    System.Boolean
    Implements
    IShaderProperty.isBatchable

    overrideReferenceName

    Declaration
    public string overrideReferenceName { get; set; }
    Property Value
    Type Description
    System.String
    Implements
    IShaderProperty.overrideReferenceName

    propertyType

    Declaration
    public abstract PropertyType propertyType { get; }
    Property Value
    Type Description
    PropertyType
    Implements
    IShaderProperty.propertyType

    referenceName

    Declaration
    public string referenceName { get; }
    Property Value
    Type Description
    System.String
    Implements
    IShaderProperty.referenceName

    value

    Declaration
    public T value { get; set; }
    Property Value
    Type Description
    T

    Methods

    Copy()

    Declaration
    public abstract IShaderProperty Copy()
    Returns
    Type Description
    IShaderProperty
    Implements
    IShaderProperty.Copy()

    GetPreviewMaterialProperty()

    Declaration
    public abstract PreviewProperty GetPreviewMaterialProperty()
    Returns
    Type Description
    PreviewProperty
    Implements
    IShaderProperty.GetPreviewMaterialProperty()

    GetPropertyAsArgumentString()

    Declaration
    public virtual string GetPropertyAsArgumentString()
    Returns
    Type Description
    System.String
    Implements
    IShaderProperty.GetPropertyAsArgumentString()

    GetPropertyBlockString()

    Declaration
    public abstract string GetPropertyBlockString()
    Returns
    Type Description
    System.String
    Implements
    IShaderProperty.GetPropertyBlockString()

    GetPropertyDeclarationString(String)

    Declaration
    public abstract string GetPropertyDeclarationString(string delimiter = ";")
    Parameters
    Type Name Description
    System.String delimiter
    Returns
    Type Description
    System.String
    Implements
    IShaderProperty.GetPropertyDeclarationString(String)

    ToConcreteNode()

    Declaration
    public abstract INode ToConcreteNode()
    Returns
    Type Description
    INode
    Implements
    IShaderProperty.ToConcreteNode()
    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