docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Operator implicit operator

    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 © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)