docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Operator implicit operator

    implicit operator JSONNode(string)

    Performs an implicit conversion from string to JSONNode.

    Declaration
    public static implicit operator JSONNode(string s)
    Parameters
    Type Name Description
    string s

    The s.

    Returns
    Type Description
    JSONNode

    The result of the conversion.

    implicit operator string(JSONNode)

    Performs an implicit conversion from JSONNode to string.

    Declaration
    public static implicit operator string(JSONNode d)
    Parameters
    Type Name Description
    JSONNode d

    The d.

    Returns
    Type Description
    string

    The result of the conversion.

    implicit operator JSONNode(double)

    Performs an implicit conversion from double to JSONNode.

    Declaration
    public static implicit operator JSONNode(double n)
    Parameters
    Type Name Description
    double n

    The n.

    Returns
    Type Description
    JSONNode

    The result of the conversion.

    implicit operator double(JSONNode)

    Performs an implicit conversion from JSONNode to double.

    Declaration
    public static implicit operator double(JSONNode d)
    Parameters
    Type Name Description
    JSONNode d

    The d.

    Returns
    Type Description
    double

    The result of the conversion.

    implicit operator JSONNode(float)

    Performs an implicit conversion from float to JSONNode.

    Declaration
    public static implicit operator JSONNode(float n)
    Parameters
    Type Name Description
    float n

    The n.

    Returns
    Type Description
    JSONNode

    The result of the conversion.

    implicit operator float(JSONNode)

    Performs an implicit conversion from JSONNode to float.

    Declaration
    public static implicit operator float(JSONNode d)
    Parameters
    Type Name Description
    JSONNode d

    The d.

    Returns
    Type Description
    float

    The result of the conversion.

    implicit operator JSONNode(int)

    Performs an implicit conversion from int to JSONNode.

    Declaration
    public static implicit operator JSONNode(int n)
    Parameters
    Type Name Description
    int n

    The n.

    Returns
    Type Description
    JSONNode

    The result of the conversion.

    implicit operator int(JSONNode)

    Performs an implicit conversion from JSONNode to int.

    Declaration
    public static implicit operator int(JSONNode d)
    Parameters
    Type Name Description
    JSONNode d

    The d.

    Returns
    Type Description
    int

    The result of the conversion.

    implicit operator JSONNode(bool)

    Performs an implicit conversion from bool to JSONNode.

    Declaration
    public static implicit operator JSONNode(bool b)
    Parameters
    Type Name Description
    bool b

    if set to true [b].

    Returns
    Type Description
    JSONNode

    The result of the conversion.

    implicit operator bool(JSONNode)

    Performs an implicit conversion from JSONNode to bool.

    Declaration
    public static implicit operator bool(JSONNode d)
    Parameters
    Type Name Description
    JSONNode d

    The d.

    Returns
    Type Description
    bool

    The result of the conversion.

    implicit operator JSONNode(KeyValuePair<string, JSONNode>)

    Performs an implicit conversion from KeyValuePair<TKey, TValue> to JSONNode.

    Declaration
    public static implicit operator JSONNode(KeyValuePair<string, JSONNode> aKeyValue)
    Parameters
    Type Name Description
    KeyValuePair<string, JSONNode> aKeyValue

    a key value.

    Returns
    Type Description
    JSONNode

    The result of the conversion.

    implicit operator JSONNode(Vector2)

    Performs an implicit conversion from Vector2 to JSONNode.

    Declaration
    public static implicit operator JSONNode(Vector2 aVec)
    Parameters
    Type Name Description
    Vector2 aVec

    a vec.

    Returns
    Type Description
    JSONNode

    The result of the conversion.

    implicit operator JSONNode(Vector3)

    Performs an implicit conversion from Vector3 to JSONNode.

    Declaration
    public static implicit operator JSONNode(Vector3 aVec)
    Parameters
    Type Name Description
    Vector3 aVec

    a vec.

    Returns
    Type Description
    JSONNode

    The result of the conversion.

    implicit operator JSONNode(Vector4)

    Performs an implicit conversion from Vector4 to JSONNode.

    Declaration
    public static implicit operator JSONNode(Vector4 aVec)
    Parameters
    Type Name Description
    Vector4 aVec

    a vec.

    Returns
    Type Description
    JSONNode

    The result of the conversion.

    implicit operator JSONNode(Quaternion)

    Performs an implicit conversion from Quaternion to JSONNode.

    Declaration
    public static implicit operator JSONNode(Quaternion aRot)
    Parameters
    Type Name Description
    Quaternion aRot

    a rot.

    Returns
    Type Description
    JSONNode

    The result of the conversion.

    implicit operator JSONNode(Rect)

    Performs an implicit conversion from Rect to JSONNode.

    Declaration
    public static implicit operator JSONNode(Rect aRect)
    Parameters
    Type Name Description
    Rect aRect

    a rect.

    Returns
    Type Description
    JSONNode

    The result of the conversion.

    implicit operator JSONNode(RectOffset)

    Performs an implicit conversion from RectOffset to JSONNode.

    Declaration
    public static implicit operator JSONNode(RectOffset aRect)
    Parameters
    Type Name Description
    RectOffset aRect

    a rect.

    Returns
    Type Description
    JSONNode

    The result of the conversion.

    implicit operator Vector2(JSONNode)

    Performs an implicit conversion from JSONNode to Vector2.

    Declaration
    public static implicit operator Vector2(JSONNode aNode)
    Parameters
    Type Name Description
    JSONNode aNode

    a node.

    Returns
    Type Description
    Vector2

    The result of the conversion.

    implicit operator Vector3(JSONNode)

    Performs an implicit conversion from JSONNode to Vector3.

    Declaration
    public static implicit operator Vector3(JSONNode aNode)
    Parameters
    Type Name Description
    JSONNode aNode

    a node.

    Returns
    Type Description
    Vector3

    The result of the conversion.

    implicit operator Vector4(JSONNode)

    Performs an implicit conversion from JSONNode to Vector4.

    Declaration
    public static implicit operator Vector4(JSONNode aNode)
    Parameters
    Type Name Description
    JSONNode aNode

    a node.

    Returns
    Type Description
    Vector4

    The result of the conversion.

    implicit operator Quaternion(JSONNode)

    Performs an implicit conversion from JSONNode to Quaternion.

    Declaration
    public static implicit operator Quaternion(JSONNode aNode)
    Parameters
    Type Name Description
    JSONNode aNode

    a node.

    Returns
    Type Description
    Quaternion

    The result of the conversion.

    implicit operator Rect(JSONNode)

    Performs an implicit conversion from JSONNode to Rect.

    Declaration
    public static implicit operator Rect(JSONNode aNode)
    Parameters
    Type Name Description
    JSONNode aNode

    a node.

    Returns
    Type Description
    Rect

    The result of the conversion.

    implicit operator RectOffset(JSONNode)

    Performs an implicit conversion from JSONNode to RectOffset.

    Declaration
    public static implicit operator RectOffset(JSONNode aNode)
    Parameters
    Type Name Description
    JSONNode aNode

    a node.

    Returns
    Type Description
    RectOffset

    The result of the conversion.

    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)