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

    This class is responsible for collecting all meshes that are on the prefab object and its children such that it can be easily rendered in one go.

    Inheritance
    Object
    PreviewMeshes
    Namespace: TycoonTerrain.Previewers
    Assembly: TycoonTerrainAssembly.dll
    Syntax
    public class PreviewMeshes

    Constructors

    PreviewMeshes()

    Declaration
    public PreviewMeshes()

    Methods

    Render(Matrix4x4, Material, Int32)

    Renders the cached meshes in specified location, rotation and with specified material and layer.

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

    The material.

    Int32 layer

    The layer.

    Render(Vector3, Quaternion, Material, Int32)

    Renders the cached meshes in specified location, rotation and with specified material and layer.

    Declaration
    public void Render(Vector3 position, Quaternion rotation, Material material, int layer)
    Parameters
    Type Name Description
    UnityEngine.Vector3 position

    The position.

    UnityEngine.Quaternion rotation

    The rotation.

    UnityEngine.Material material

    The material.

    Int32 layer

    The layer.

    UpdateMeshes(GameObject)

    Scans the given prefab for mesh filters and caches its mesh references.

    Declaration
    public void UpdateMeshes(GameObject prefab)
    Parameters
    Type Name Description
    UnityEngine.GameObject prefab

    The prefab.

    In This Article
    • Constructors
      • PreviewMeshes()
    • Methods
      • Render(Matrix4x4, Material, Int32)
      • Render(Vector3, Quaternion, Material, Int32)
      • UpdateMeshes(GameObject)
    Back to top Tycoon Tile documentation