docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Operator implicit operator

    implicit operator int(Property)

    Explicitly casts this Property into an integer. Handle convertible types properly.

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

    The value to cast.

    Returns
    Type Description
    int

    The integer value.

    Exceptions
    Type Condition
    InvalidCastException

    Thrown if the stored type isn't compatible with the requested type.

    OverflowException

    Thrown if the stored value is outside int boundaries.

    implicit operator Property(int)

    Construct a Property from the given value.

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

    The value to cast into Property.

    Returns
    Type Description
    Property

    implicit operator long(Property)

    Explicitly casts this Property into a long. Handle convertible types properly.

    Declaration
    public static implicit operator long(Property value)
    Parameters
    Type Name Description
    Property value

    The value to cast.

    Returns
    Type Description
    long

    The long value.

    Exceptions
    Type Condition
    InvalidCastException

    Thrown if the stored type isn't compatible with the requested type.

    OverflowException

    Thrown if the stored value is outside long boundaries.

    implicit operator Property(long)

    Construct a Property from the given value.

    Declaration
    public static implicit operator Property(long value)
    Parameters
    Type Name Description
    long value

    The value to cast into Property.

    Returns
    Type Description
    Property

    implicit operator float(Property)

    Explicitly casts this Property into a float. Handle convertible types properly.

    Declaration
    public static implicit operator float(Property value)
    Parameters
    Type Name Description
    Property value

    The value to cast.

    Returns
    Type Description
    float

    The float value.

    Exceptions
    Type Condition
    InvalidCastException

    Thrown if the stored type isn't compatible with the requested type.

    implicit operator Property(float)

    Construct a Property from the given value.

    Declaration
    public static implicit operator Property(float value)
    Parameters
    Type Name Description
    float value

    The value to cast into Property.

    Returns
    Type Description
    Property

    implicit operator double(Property)

    Explicitly casts this Property into a double. Handle convertible types properly.

    Declaration
    public static implicit operator double(Property value)
    Parameters
    Type Name Description
    Property value

    The value to cast.

    Returns
    Type Description
    double

    The double value.

    Exceptions
    Type Condition
    InvalidCastException

    Thrown if the stored type isn't compatible with the requested type.

    implicit operator Property(double)

    Construct a Property from the given value.

    Declaration
    public static implicit operator Property(double value)
    Parameters
    Type Name Description
    double value

    The value to cast into Property.

    Returns
    Type Description
    Property

    implicit operator bool(Property)

    Explicitly casts this Property into a bool. Handle convertible types properly.

    Declaration
    public static implicit operator bool(Property value)
    Parameters
    Type Name Description
    Property value

    The value to cast.

    Returns
    Type Description
    bool

    The bool value.

    Exceptions
    Type Condition
    InvalidCastException

    Thrown if the stored type isn't compatible with the requested type.

    implicit operator Property(bool)

    Construct a Property from the given value.

    Declaration
    public static implicit operator Property(bool value)
    Parameters
    Type Name Description
    bool value

    The value to cast into Property.

    Returns
    Type Description
    Property

    implicit operator string(Property)

    Explicitly casts this Property into a string. Handle convertible types properly.

    Declaration
    public static implicit operator string(Property value)
    Parameters
    Type Name Description
    Property value

    The value to cast.

    Returns
    Type Description
    string

    The string value.

    Exceptions
    Type Condition
    NotSupportedException

    Thrown if the stored type isn't supported.

    implicit operator Property(string)

    Construct a Property from the given value.

    Declaration
    public static implicit operator Property(string value)
    Parameters
    Type Name Description
    string value

    The value to cast into Property.

    Returns
    Type Description
    Property
    In This Article
    Back to top
    Copyright © 2024 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)