• Manual
  • Scripting API
  • Asset Store
  • TycoonTerrain.Core.Generation
  • TerrainGenerationJob
Search Results for

    Show / Hide Table of Contents
    • TycoonTerrain.Components
      • TycoonTileRendererBase
    • TycoonTerrain.Core
      • BoundsContainer
      • BoundsReservationRegister
      • CallbackHandle
      • CallbacksRegister
      • CardinalDirection
      • ChunkSet
      • ConstructableDefinition
      • CornerIndex
      • Extensions
      • IChunkListener
      • IntBound
      • LandTile
      • OnBoundsChangeCallback
      • PlacementValidResult
      • SurfaceOverlayMesh
      • TerrainGrid
      • TerrainModifiedEvent
      • TerrainSelection
      • TerrainTypeCollectionAsset
      • TerrainTypeDefinition
      • TerrainTypeTable
      • TileCorner
      • TileHandle
      • TilePosition
      • TileType
      • TycoonTileMap
      • TycoonTileRaycastHit
    • TycoonTerrain.Core.Generation
      • TerrainGenerationJob
    • TycoonTerrain.Core.Rendering
      • ChunkMesh
      • IMesh
      • NativeMeshData
      • RenderTerrainCliffChunkJob
      • RenderTerrainSurfaceChunkJob
      • RenderWaterChunkJob
      • RenderWaterCliffChunkJob
      • SubMeshTriangle
    • TycoonTerrain.Core.TerrainOperations
      • ClearWaterBodyOperation
      • CopyHeightMapOperation
      • CreateWaterBodyFloodOperation
      • DecreaseHeightCliffOperation
      • DecreaseHeightCorner
      • DecreaseHeightSmoothConnectedOperation
      • GetTilesInWaterBody
      • IncreaseHeightCliffOperation
      • IncreaseHeightCorner
      • IncreaseHeightSmoothConnectedOperation
      • ITerrainOperation
      • MaxHeightSmooth
      • OperationContext
      • OperationResult
      • SetHeightOperation
      • SetTileTypeInBoundsOperation
      • SetWaterLevelOperation
    • TycoonTerrain.Previewers
      • BuildingToolPreviewer
      • PreviewMeshes
      • TerrainPainterPreviewer
      • TerrainSelectionPreviewer
      • ToolPreviewerBase<T>
    • TycoonTerrain.Tools
      • BuildingTool
      • PainterTool
      • SceneryTool
      • SelectionToolBase
      • SnappingMode
      • TerraformingTool
      • ToolBase
      • WaterTool

    Struct TerrainGenerationJob

    Generates an example terrain

    Namespace: TycoonTerrain.Core.Generation
    Assembly: TycoonTerrainAssembly.dll
    Syntax
    public struct TerrainGenerationJob : IJob

    Constructors

    TerrainGenerationJob(NativeArray<Byte>, int2)

    Initializes a new instance of the TerrainGenerationJob struct.

    Declaration
    public TerrainGenerationJob(NativeArray<byte> heightMap, int2 dimensions)
    Parameters
    Type Name Description
    Unity.Collections.NativeArray<Byte> heightMap

    The height map array. Each sample is a vertex that is shared by 4 tile corners.

    Unity.Mathematics.int2 dimensions

    The dimensions of heightMap in each direction.

    Exceptions
    Type Condition
    ArgumentException

    Heightmap length does not correspond with specified dimensions

    Methods

    Execute()

    Declaration
    public void Execute()
    In This Article
    • Constructors
      • TerrainGenerationJob(NativeArray<Byte>, int2)
    • Methods
      • Execute()
    Back to top Tycoon Tile documentation