Hex Terrains Framework
Search Results for

    Show / Hide Table of Contents

    Struct ChunkVisibility

    This is a layer of info about wether chunk is visible and if so, where among all possible positions this chunk is visible (Center, North, East, etc.) If Terrain has Left-Right sides connected, nether Top-Down sides, there is only one possible position: Center

    Implements
    IEquatable<ChunkVisibility>
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Fwt.HexTerrains.Data
    Assembly: fwt.hexterrains.dll
    Syntax
    [BurstCompile]
    public struct ChunkVisibility : IEquatable<ChunkVisibility>

    Fields

    ChunkOffset

    Offset of the chunk position relative to it's center (default) position. This value is not 0:0 when chunk is found beyond the borders of the terrain area, when camera is moved outside the terrain borders and chunk is displayed not at it's center (default) position

    Declaration
    public float3 ChunkOffset
    Field Value
    Type Description
    float3

    IsVisible

    If true, chunk is inside the camera frustum. Otherwise the chunk is not visible and should not be rendered

    Declaration
    public bool IsVisible
    Field Value
    Type Description
    bool

    Transform

    Calculated transform of the chunk

    Declaration
    public Matrix4x4 Transform
    Field Value
    Type Description
    Matrix4x4

    VisualPosition

    Chunk is visible at this position

    Declaration
    public float3 VisualPosition
    Field Value
    Type Description
    float3

    Methods

    Equals(ChunkVisibility)

    Declaration
    [BurstCompile]
    public bool Equals(ChunkVisibility other)
    Parameters
    Type Name Description
    ChunkVisibility other
    Returns
    Type Description
    bool

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    ValueType.ToString()

    Implements

    IEquatable<T>

    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