docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct GhostConnectionPosition

    Add this component to each connection to determine which tiles the connection should prioritize. This will be passed as argument to the built-in scale function to compute Importance. See GhostDistanceImportance implementation.

    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 GhostConnectionPosition : IComponentData, IQueryTypeParameter

    Fields

    Position

    Position of the tile in world coordinates

    Declaration
    public float3 Position
    Field Value
    Type Description
    float3

    Rotation

    Currently not updated by any systems. Made available for custom importance implementations.

    Declaration
    public quaternion Rotation
    Field Value
    Type Description
    quaternion

    ViewSize

    Currently not updated by any systems. Made available for custom importance implementations.

    Declaration
    public float4 ViewSize
    Field Value
    Type Description
    float4

    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)