{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Struct RelevantGhostForConnection | Netcode for Entities | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct RelevantGhostForConnection

    A connection-ghost pair, used to populate the GhostRelevancy set at runtime, by declaring which ghosts are relevant for a given connection. Behaviour is dependent upon on GhostRelevancyMode.

    Implements
    IEquatable<RelevantGhostForConnection>
    IComparable<RelevantGhostForConnection>
    Inherited Members
    ValueType.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.NetCode
    Assembly: solution.dll
    Syntax
    public struct RelevantGhostForConnection : IEquatable<RelevantGhostForConnection>, IComparable<RelevantGhostForConnection>

    Constructors

    Name Description
    RelevantGhostForConnection(int, int)

    Construct a new instance with the given connection id and ghost

    Fields

    Name Description
    Connection

    The connection for which this ghost is relevant.

    Ghost

    the ghost id of the entity.

    Methods

    Name Description
    CompareTo(RelevantGhostForConnection)

    Comparison operator, used for sorting.

    Equals(RelevantGhostForConnection)

    return whenever the other RelevantGhostForConnection is equals the current instance.

    GetHashCode()

    A hash code suitable to insert the RelevantGhostForConnection into an hashmap or other key-value pair containers. Is guarantee to be unique for the connection, ghost pairs.

    In This Article
    Back to top
    Copyright © 2023 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)