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

    Show / Hide Table of Contents

    Struct GhostImportance

    Singleton component used to control importance settings

    Implements
    IComponentData
    IQueryTypeParameter
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.NetCode
    Assembly: solution.dll
    Syntax
    [BurstCompile]
    public struct GhostImportance : IComponentData, IQueryTypeParameter

    Fields

    Name Description
    GhostConnectionComponentType

    ComponentType for connection data. GhostSendSystem will query for this component type before invoking the function assigned to ScaleImportanceFunction.

    GhostImportanceDataType

    Optional singleton ComponentType for configuration data. Leave default if not required. Zero will be passed into the ScaleImportanceFunction. GhostSendSystem will query for this component type, passing the data into the ScaleImportanceFunction function when invoking it.

    GhostImportancePerChunkDataType

    ComponentType for per chunk data. Must be a shared component type! Each chunk represents a group of entities, collected as they share some importance-related value (e.g. distance to the players character controller). GhostSendSystem will query for this component type before invoking the function assigned to ScaleImportanceFunction.

    NoScaleFunctionPointer

    Default implementation of GhostImportance.ScaleImportanceDelegate. Will return basePriority without computation.

    ScaleImportanceFunction

    This function pointer will be invoked with collected data as described in GhostImportance.ScaleImportanceDelegate.

    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)