docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct Property

    Struct of this type store a property value and its current type.

    Implements
    IDictionaryConvertible
    Namespace: UnityEngine.GameFoundation
    Assembly: solution.dll
    Syntax
    [Serializable]
    public struct Property : IDictionaryConvertible

    Properties

    Name Description
    type

    Stored value's type.

    Methods

    Name Description
    AsBool()

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

    AsDouble()

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

    AsFloat()

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

    AsInt()

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

    AsLong()

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

    AsString()

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

    CompareTo(Property)

    Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

    Equals(object)

    Indicates whether this instance and a specified object are equal.

    Equals(Property)

    Indicates whether the current object is equal to another object of the same type.

    Equals(Property, Property)

    Determines whether the specified objects are equal.

    FillFromDictionary(Dictionary<string, object>)

    Reset this object and fill it with the given data.

    GetHashCode()

    Returns the hash code for this instance.

    GetHashCode(Property)

    Returns a hash code for the specified object.

    ToDictionary()

    Converts this object to a JSON ready dictionary.

    ToString()

    Returns the fully qualified type name of this instance.

    TryParse(string, string, out Property)

    Create a new Property instance by parsing the given rawPropertyType and rawValue.

    Operators

    Name Description
    operator +(Property, Property)

    Add the two given operands into a new Property.

    operator ==(Property, Property)

    Compare the two given operands for equality.

    operator >(Property, Property)

    Compare the two given operands if they are numbers.

    operator >=(Property, Property)

    Compare the two given operands if they are numbers.

    implicit operator Property(bool)

    Construct a Property from the given value.

    implicit operator Property(double)

    Construct a Property from the given value.

    implicit operator Property(int)

    Construct a Property from the given value.

    implicit operator Property(long)

    Construct a Property from the given value.

    implicit operator Property(float)

    Construct a Property from the given value.

    implicit operator Property(string)

    Construct a Property from the given value.

    implicit operator bool(Property)

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

    implicit operator double(Property)

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

    implicit operator int(Property)

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

    implicit operator long(Property)

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

    implicit operator float(Property)

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

    implicit operator string(Property)

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

    operator !=(Property, Property)

    Compare the two given operands for inequality.

    operator <(Property, Property)

    Compare the two given operands if they are numbers.

    operator <=(Property, Property)

    Compare the two given operands if they are numbers.

    operator -(Property, Property)

    Subtract the two given operands into a new 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)