docs.unity3d.com
    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
    Namespace: UnityEngine.VFX.Utility
    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

    Addition(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(ExposedProperty to String)

    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(String to ExposedProperty)

    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(ExposedProperty to Int32)

    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
    Int32

    The Shader.PropertyToID result

    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