• Manual
  • Scripting API
  • Asset Store
  • TycoonTerrain.Core
  • SurfaceOverlayMesh
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

    Class SurfaceOverlayMesh

    Helper class for rendering mesh overlays on the Tycoon Tile surface.

    Inheritance
    Object
    SurfaceOverlayMesh
    Namespace: TycoonTerrain.Core
    Assembly: TycoonTerrainAssembly.dll
    Syntax
    public class SurfaceOverlayMesh

    Constructors

    SurfaceOverlayMesh(Single)

    Initializes a new instance of the SurfaceOverlayMesh class.

    Declaration
    public SurfaceOverlayMesh(float heightOffset)
    Parameters
    Type Name Description
    Single heightOffset

    The vertical height offset in world units.

    Properties

    OverlayHeightOffset

    The height in world space to offset the overlay mesh data by.

    Declaration
    public float OverlayHeightOffset { get; set; }
    Property Value
    Type Description
    Single

    The height in world space to offset the overlay mesh data by.

    Methods

    Clear()

    Clears the internal mesh.

    Declaration
    public void Clear()

    Render(Matrix4x4, Material, Int32)

    Renders the mesh.

    Declaration
    public void Render(Matrix4x4 matrix, Material material, int layer)
    Parameters
    Type Name Description
    UnityEngine.Matrix4x4 matrix

    The matrix.

    UnityEngine.Material material

    The material to render with.

    Int32 layer

    The layer to render to.

    UpdateMeshFor(TycoonTileMap, IntBound)

    Updates the overlay mesh to represent the given terrain within a certain bounds.

    Declaration
    public void UpdateMeshFor(TycoonTileMap terrain, IntBound bounds)
    Parameters
    Type Name Description
    TycoonTileMap terrain

    The terrain.

    IntBound bounds

    The bounds.

    In This Article
    • Constructors
      • SurfaceOverlayMesh(Single)
    • Properties
      • OverlayHeightOffset
    • Methods
      • Clear()
      • Render(Matrix4x4, Material, Int32)
      • UpdateMeshFor(TycoonTileMap, IntBound)
    Back to top Tycoon Tile documentation