Class FillContext | Package Manager UI website
docs.unity.cn
    Show / Hide Table of Contents

    Class FillContext

    Inheritance
    System.Object
    FillContext
    Namespace: UnityEditor.Experimental.TerrainAPI
    Syntax
    public class FillContext

    Constructors

    FillContext(Terrain, Int32, Int32)

    Declaration
    public FillContext(Terrain terrain, int targetTextureWidth, int targetTextureHeight)
    Parameters
    Type Name Description
    Terrain terrain
    System.Int32 targetTextureWidth
    System.Int32 targetTextureHeight

    Properties

    destinationRenderTexture

    Declaration
    public RenderTexture destinationRenderTexture { get; }
    Property Value
    Type Description
    RenderTexture

    oldRenderTexture

    Declaration
    public RenderTexture oldRenderTexture { get; }
    Property Value
    Type Description
    RenderTexture

    pixelRect

    Declaration
    public RectInt pixelRect { get; }
    Property Value
    Type Description
    RectInt

    pixelSize

    Declaration
    public Vector2 pixelSize { get; }
    Property Value
    Type Description
    Vector2

    sourceRenderTexture

    Declaration
    public RenderTexture sourceRenderTexture { get; }
    Property Value
    Type Description
    RenderTexture

    targetTextureHeight

    Declaration
    public int targetTextureHeight { get; }
    Property Value
    Type Description
    System.Int32

    targetTextureWidth

    Declaration
    public int targetTextureWidth { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    CreateRenderTargets(RenderTextureFormat)

    Declaration
    public void CreateRenderTargets(RenderTextureFormat format)
    Parameters
    Type Name Description
    RenderTextureFormat format

    GatherAlphamap(TerrainLayer)

    Declaration
    public void GatherAlphamap(TerrainLayer inputLayer)
    Parameters
    Type Name Description
    TerrainLayer inputLayer

    GatherHeightmap()

    Declaration
    public void GatherHeightmap()

    ScatterHeightmap(String)

    Declaration
    public void ScatterHeightmap(string editorUndoName)
    Parameters
    Type Name Description
    System.String editorUndoName
    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX