docs.unity.cn
    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.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.NetCode
    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
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023