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

    Show / Hide Table of Contents

    Struct SnapshotDataLookupHelper

    Helper struct that can be used in your spawn classification systems (and classification jobs) to create SnapshotDataBufferComponentLookup instances. In order to use the helper, the system that create/hold the instance, must be created after the GhostCollectionSystem and after the GhostReceiveSystem, because of the need to retrieve the SpawnedGhostEntityMap and the SnapshotDataLookupCache data.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.NetCode.LowLevel
    Assembly: solution.dll
    Syntax
    public struct SnapshotDataLookupHelper

    Constructors

    Name Description
    SnapshotDataLookupHelper(ref SystemState, Entity, Entity)

    Default constructor, collect and initialize all the internal BufferFromEntity<T> handles and collect the necessary data structures.

    Methods

    Name Description
    CreateSnapshotBufferLookup()

    Create a new SnapshotDataBufferComponentLookup instance that can be used on the main thread or in job. This method introduce a sync point, because internally retrieve all the necessary DynamicBuffer<T>.

    Update(ref SystemState)

    Call this method in your system OnUpdate to refresh all the internal BufferFromEntity<T> handles.

    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)