docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IPaintContextRenderPreview

    An interface that represents the method for rendering the terrain-brush preview.

    Inherited Members
    IPaintContextRender.SetupTerrainToolMaterialProperties(PaintContext, BrushTransform, Material)
    IPaintContextRender.RenderBrush(PaintContext, Material, int)
    IDisposable.Dispose()
    Namespace: UnityEditor.TerrainTools
    Assembly: Unity.TerrainTools.Editor.dll
    Syntax
    public interface IPaintContextRenderPreview : IPaintContextRender, IDisposable

    Methods

    RenderBrushPreview(PaintContext, TerrainBrushPreviewMode, BrushTransform, Material, int)

    Renders a preview of the terrain-brush using the specified material/pass and paint-context provided.

    Declaration
    void RenderBrushPreview(PaintContext paintContext, TerrainBrushPreviewMode previewTexture, BrushTransform brushTransform, Material material, int pass)
    Parameters
    Type Name Description
    PaintContext paintContext

    The paint-context to preview the changes against.

    TerrainBrushPreviewMode previewTexture

    The type of texture to preview.

    BrushTransform brushTransform

    The brush-transform to be rendered.

    Material material

    The material to use when rendering to the terrain.

    int pass

    The pass on the material to use.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)