docs.unity3d.com
    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.

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

    Fields

    TileBorderWidth

    Width of the tile border. When deciding whether an entity is on one or the other, the border where it can enter is determined by this parameter.

    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
    In This Article
    • Fields
      • TileBorderWidth
      • TileCenter
      • TileSize
    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