docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Delegate GhostImportance.BatchScaleImportanceDelegate

    Scale importance delegate. This describes the interface GhostSendSystem will use to compute importance scaling. The method is responsible to modify the priority property for all the chunks (the higher the prioriy, the more often a ghost's data is synchronized). See GhostDistanceImportance for example implementation.

    Namespace: Unity.NetCode
    Assembly: Unity.NetCode.dll
    Syntax
    public delegate void GhostImportance.BatchScaleImportanceDelegate(IntPtr connectionData, IntPtr importanceData, IntPtr sharedComponentTypeHandlePtr, ref UnsafeList<PrioChunk> chunkData)
    Parameters
    Type Name Description
    IntPtr connectionData

    Per connection data. Ex. position in the world that should be prioritized.

    IntPtr importanceData

    Optional configuration data. Ex. Each tile's configuration. Handle IntPtr.Zero!

    IntPtr sharedComponentTypeHandlePtr

    Unity.Entities.DynamicSharedComponentTypeHandle to retrieve the per-chunk tile information. Ex. each chunk's tile index.

    UnsafeList<PrioChunk> chunkData

    Chunk data.

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