docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Operator implicit operator

    implicit operator Range(int)

    Returns a range from an int value

    Declaration
    public static implicit operator Range(int value)
    Parameters
    Type Name Description
    int value

    The value that needs to be converted

    Returns
    Type Description
    Range

    Returns the int value converted to a Range

    implicit operator int(Range)

    Returns the value of this range as a int

    Declaration
    public static implicit operator int(Range value)
    Parameters
    Type Name Description
    Range value

    The value that needs to be converted

    Returns
    Type Description
    int

    Returns the Range value converted to an int

    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)