docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct GhostDistanceData

    The default configuration data for GhostImportance. Uses tiling to group entities into spatial chunks, allowing chunks to be prioritized based on distance (via the GhostDistancePartitioningSystem), effectively giving you performant distance-based importance scaling.

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

    Fields

    TileBorderWidth

    An optimization. Denotes the width of each tiles border. When deciding whether an entity has moved to another tile, this border value is added as an additional distance threshold requirement, reducing the frequency of expensive structural changes for ghosts that commonly move around a lot within a small area.

    Declaration
    public float3 TileBorderWidth
    Field Value
    Type Description
    float3

    TileCenter

    Offset of the tile center

    Declaration
    public int3 TileCenter
    Field Value
    Type Description
    int3

    TileSize

    Dimensions of the tile.

    Declaration
    public int3 TileSize
    Field Value
    Type Description
    int3

    Implements

    Unity.Entities.IComponentData
    Unity.Entities.IQueryTypeParameter
    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)