docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Property AreEqual

    AreEqual

    Uses the most efficient mechanism for a given type to determine if two values are equal. For types that implement IEquatable<T>, it will call the Equals() method. For unmanaged types, it will do a bytewise memory comparison. For other types, it will call the == operator.

    Note: If you are using this in a custom generic class, please make sure your class is decorated with GenerateSerializationForGenericParameterAttribute so that codegen can initialize the serialization mechanisms correctly. If your class is NOT generic, it is better to check their equality yourself.

    Declaration
    public static NetworkVariableSerialization<T>.EqualsDelegate AreEqual { get; }
    Property Value
    Type Description
    NetworkVariableSerialization<T>.EqualsDelegate
    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)