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

    Show / Hide Table of Contents

    Struct SnapshotDataBufferComponentLookup

    Helper struct that can be used to inspect the presence of components from a SnapshotData buffer and retrieve their data. The lookup can be passed ot jobs The helper allow to only read component data. Buffers are not supported.

    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 SnapshotDataBufferComponentLookup

    Methods

    Name Description
    GetFallbackPredictionMode(in GhostSpawnBuffer)

    Retrieve the prediction mode used as fallback if the spawning ghost has not been classified.

    GetGhostOwner(in GhostSpawnBuffer, in DynamicBuffer<SnapshotDataBuffer>)

    Retrieve the network id of the player owning the ghost if the ghost archetype has a GhostOwner.

    HasBuffer<T>(int)

    Check if the a component of type T is present this spawning ghost.

    HasComponent<T>(int)

    Check if the a component of type T is present this spawning ghost.

    HasGhostOwner(in GhostSpawnBuffer)

    Check if the spawning ghost has a GhostOwner.

    IsOwnerPredicted(in GhostSpawnBuffer)

    Check if the spawning ghost mode is owner predicted.

    TryGetComponentDataFromSnapshotHistory<T>(int, in DynamicBuffer<SnapshotDataBuffer>, out T, int)

    Try to retrieve the data for a component type from the the snapshot history buffer.

    TryGetComponentDataFromSpawnBuffer<T>(in GhostSpawnBuffer, in DynamicBuffer<SnapshotDataBuffer>, out T)

    Try to retrieve the data for a component type from the spawning buffer.

    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)