Class Utility | Terrain Tools | 3.0.2-preview.3
docs.unity3d.com
    Show / Hide Table of Contents

    Class Utility

    Inheritance
    Object
    Utility
    Namespace: UnityEditor.Experimental.TerrainAPI
    Syntax
    public static class Utility

    Methods

    AnimationCurveToRenderTexture(AnimationCurve, ref Texture2D)

    Declaration
    public static Vector2 AnimationCurveToRenderTexture(AnimationCurve curve, ref Texture2D tex)
    Parameters
    Type Name Description
    AnimationCurve curve
    Texture2D tex
    Returns
    Type Description
    Vector2

    CollectTexelValidity(Terrain, Rect, Int32)

    Declaration
    public static PaintContext CollectTexelValidity(Terrain terrain, Rect boundsInTerrainSpace, int extraBorderPixels = 0)
    Parameters
    Type Name Description
    Terrain terrain
    Rect boundsInTerrainSpace
    Int32 extraBorderPixels
    Returns
    Type Description
    PaintContext

    GetDefaultPreviewMaterial()

    Declaration
    public static Material GetDefaultPreviewMaterial()
    Returns
    Type Description
    Material

    SetFilterRT(IBrushUIGroup, RenderTexture, RenderTexture, Material)

    Set the filter render texture for transformation brushes

    Declaration
    public static void SetFilterRT(IBrushUIGroup commonUI, RenderTexture sourceRenderTexture, RenderTexture destinationRenderTexture, Material mat)
    Parameters
    Type Name Description
    IBrushUIGroup commonUI
    RenderTexture sourceRenderTexture
    RenderTexture destinationRenderTexture
    Material mat

    SetupMaterialForPainting(PaintContext, BrushTransform, Material)

    Declaration
    public static void SetupMaterialForPainting(PaintContext paintContext, BrushTransform brushTransform, Material material)
    Parameters
    Type Name Description
    PaintContext paintContext
    BrushTransform brushTransform
    Material material

    SetupMaterialForPaintingWithTexelValidityContext(PaintContext, PaintContext, BrushTransform, Material)

    Declaration
    public static void SetupMaterialForPaintingWithTexelValidityContext(PaintContext paintContext, PaintContext texelCtx, BrushTransform brushTransform, Material material)
    Parameters
    Type Name Description
    PaintContext paintContext
    PaintContext texelCtx
    BrushTransform brushTransform
    Material material
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023