Hex Terrains Framework
Search Results for

    Show / Hide Table of Contents

    Struct HexTerrainRaycastData

    Data structure used to store the result of a raycast on the hex terrain.

    Implements
    IComponentData
    IQueryTypeParameter
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Fwt.HexTerrains.Data
    Assembly: fwt.hexterrains.dll
    Syntax
    public struct HexTerrainRaycastData : IComponentData, IQueryTypeParameter

    Fields

    CellCoord

    The coordinate of the cell that was hit by the raycast.

    Declaration
    public int2 CellCoord
    Field Value
    Type Description
    int2

    CellIndex

    The index of the cell that was hit by the raycast.

    Declaration
    public int CellIndex
    Field Value
    Type Description
    int

    ChunkCoord

    The coordinate of the chunk that contains the cell that was hit by the raycast.

    Declaration
    public int2 ChunkCoord
    Field Value
    Type Description
    int2

    ChunkIndex

    The index of the chunk that contains the cell that was hit by the raycast.

    Declaration
    public int ChunkIndex
    Field Value
    Type Description
    int

    HitPosition

    The position of the hit point in world space.

    Declaration
    public float3 HitPosition
    Field Value
    Type Description
    float3

    IsHit

    Indicates whether the raycast hit a cell in the hex terrain. If false, the raycast did not hit any cell.

    Declaration
    public bool IsHit
    Field Value
    Type Description
    bool

    Implements

    Unity.Entities.IComponentData
    Unity.Entities.IQueryTypeParameter

    Extension Methods

    HashExtensions.GetHashCode_ValueType<TValue>(TValue, int)
    HashExtensions.GetHashCode_ValueType<TValue>(TValue, int)
    Extensions_UnityObject.SmartDestroy(object)
    Extensions_UnityObject.SmartDestroy(object)
    Extensions_UnityObject.SmartGetComponent<TComponent>(object)
    Extensions_UnityObject.SmartGetComponent<TComponent>(object)
    Extensions_UnityObject.SmartGetGameGameObject(object)
    Extensions_UnityObject.SmartGetGameGameObject(object)
    In this article
    Back to top Generated by DocFX