docs.unity3d.com
    Show / Hide Table of Contents

    Delegate GhostImportance.ScaleImportanceDelegate

    Scale importance delegate. This describes the interface GhostSendSystem will use to compute importance scaling. The higher importance value returned from this method, the more often a ghost's data is synchronized. See GhostDistanceImportance for example implementation.

    Namespace: Unity.NetCode
    Syntax
    public delegate int ScaleImportanceDelegate(IntPtr connectionData, IntPtr importanceData, IntPtr chunkTile, int basePriority);
    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 chunkTile

    Per chunk information. Ex. each entity's tile index.

    Int32 basePriority

    Priority computed by GhostSendSystem after computing tick when last updated and irrelevance.

    Returns
    Type Description
    Int32
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023