docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ExposedProperty

    An utility Class that Accelerates caching of both string properties and their integer values based on Shader.PropertyToID()

    Inheritance
    object
    ExposedProperty
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.VFX.Utility
    Assembly: Unity.VisualEffectGraph.Runtime.dll
    Syntax
    [Serializable]
    public class ExposedProperty

    Constructors

    ExposedProperty()

    Default Constructor

    Declaration
    public ExposedProperty()

    Methods

    ToString()

    The string value of this ExposedProperty

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Operators

    operator +(ExposedProperty, ExposedProperty)

    Implicit string concatenation Operator

    Declaration
    public static ExposedProperty operator +(ExposedProperty self, ExposedProperty other)
    Parameters
    Type Name Description
    ExposedProperty self
    ExposedProperty other
    Returns
    Type Description
    ExposedProperty

    explicit operator string(ExposedProperty)

    Converts automatically an ExposedProperty to a string.

    Declaration
    public static explicit operator string(ExposedProperty parameter)
    Parameters
    Type Name Description
    ExposedProperty parameter
    Returns
    Type Description
    string

    The stored name.

    implicit operator ExposedProperty(string)

    Creates a new ExposedProperty from a string.

    Declaration
    public static implicit operator ExposedProperty(string name)
    Parameters
    Type Name Description
    string name

    the string desired name

    Returns
    Type Description
    ExposedProperty

    The newly created ExposedProperty from name.

    implicit operator int(ExposedProperty)

    Converts automatically an ExposedProperty to an int (based on Shader.PropertyToID())

    Declaration
    public static implicit operator int(ExposedProperty parameter)
    Parameters
    Type Name Description
    ExposedProperty parameter
    Returns
    Type Description
    int

    The Shader.PropertyToID result

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)