Hex Terrains Framework
Search Results for

    Show / Hide Table of Contents

    Struct CreateChunkMeshLayerRequest

    Represents a request to create a terrain layer using a specified chunk mesh layer configuration.

    Implements
    IBufferElementData
    ITerrainLayerFactory
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Fwt.HexTerrains.ChunkMehes.Data
    Assembly: fwt.hexterrains.dll
    Syntax
    public struct CreateChunkMeshLayerRequest : IBufferElementData, ITerrainLayerFactory
    Remarks

    This struct is used in buffer-based data structures to facilitate the creation of terrain layers in a chunked mesh system. It implements both the IBufferElementData and ITerrainLayerFactory interfaces, allowing it to be used in ECS-based workflows and to generate terrain layers based on the provided configuration asset. The Name field identifies the layer, while the Args field holds a reference to the configuration asset required for layer creation.

    Fields

    Args

    Configuration asset reference used to initialize the newly created terrain layer with.

    Declaration
    public UnityObjectRef<ChunkMeshLayerConfigAsset> Args
    Field Value
    Type Description
    UnityObjectRef<ChunkMeshLayerConfigAsset>

    Name

    Name of the terrain layer to be created.

    Declaration
    public FixedString128Bytes Name
    Field Value
    Type Description
    FixedString128Bytes

    Methods

    CreateTerrainLayer()

    Creates a new instance of a terrain layer for hex-based maps.

    Declaration
    public HexTerrainLayer CreateTerrainLayer()
    Returns
    Type Description
    HexTerrainLayer

    A HexTerrainLayer representing the newly created terrain layer.

    Implements

    Unity.Entities.IBufferElementData
    ITerrainLayerFactory

    Extension Methods

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