{!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 GhostType | Netcode for Entities | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct GhostType

    Component storing the guid of the prefab the ghost was created from. This is used to lookup ghost type in a robust way which works even if two ghosts have the same archetype

    Implements
    IComponentData
    IQueryTypeParameter
    IEquatable<GhostType>
    Inherited Members
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.NetCode
    Assembly: solution.dll
    Syntax
    [Serializable]
    public struct GhostType : IComponentData, IQueryTypeParameter, IEquatable<GhostType>

    Methods

    Name Description
    Equals(object)

    Returns whether or not the obj reference is of type GhostType, and whether or not it's identical to the current instance.

    Equals(GhostType)

    Returns whether or not the other reference is identical to the current instance.

    GetHashCode()

    Return an hashcode suitable for inserting the component into a dictionary or a sorted container.

    Operators

    Name Description
    operator ==(GhostType, GhostType)

    Returns whether or not two GhostType are identical.

    explicit operator Hash128(GhostType)

    Convert a GhostType to a Hash128 instance. The hash will always match the prefab guid from which the ghost has been created.

    operator !=(GhostType, GhostType)

    Returns whether or not two GhostType are distinct.

    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)