docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TerrainSurfaceOptionsUIBlock

    The UI block that represents the sorting inputs for terrain lit materials.

    Inheritance
    object
    MaterialUIBlock
    TerrainSurfaceOptionsUIBlock
    Inherited Members
    MaterialUIBlock.expandableBit
    MaterialUIBlock.header
    MaterialUIBlock.materialEditor
    MaterialUIBlock.materials
    MaterialUIBlock.properties
    MaterialUIBlock.parent
    MaterialUIBlock.FindProperty(string, bool)
    MaterialUIBlock.FindPropertyLayered(string, int, bool)
    MaterialUIBlock.OnGUI()
    MaterialUIBlock.isSubHeader
    MaterialUIBlock.showSection
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Rendering.HighDefinition
    Assembly: Unity.RenderPipelines.HighDefinition.Editor.dll
    Syntax
    public class TerrainSurfaceOptionsUIBlock : MaterialUIBlock

    Constructors

    TerrainSurfaceOptionsUIBlock(ExpandableBit)

    Constructs the TerrainSurfaceOptionsUIBlock based on the parameters.

    Declaration
    public TerrainSurfaceOptionsUIBlock(MaterialUIBlock.ExpandableBit expandableBit)
    Parameters
    Type Name Description
    MaterialUIBlock.ExpandableBit expandableBit

    Bit index used to store the foldout state.

    Methods

    FindTerrainLitProperties(MaterialProperty[])

    Find the properties of terrain in the block.

    Declaration
    protected void FindTerrainLitProperties(MaterialProperty[] props)
    Parameters
    Type Name Description
    MaterialProperty[] props

    The list of properties in the inspected material(s).

    LoadMaterialProperties()

    Loads the material properties for the block.

    Declaration
    public override void LoadMaterialProperties()
    Overrides
    MaterialUIBlock.LoadMaterialProperties()

    OnGUIOpen()

    Renders the properties in the block.

    Declaration
    protected override void OnGUIOpen()
    Overrides
    MaterialUIBlock.OnGUIOpen()

    OnTerrainLayerGUI(TerrainLayer, Terrain)

    Renders the properties for terrain layers in the block.

    Declaration
    public bool OnTerrainLayerGUI(TerrainLayer terrainLayer, Terrain terrain)
    Parameters
    Type Name Description
    TerrainLayer terrainLayer

    Terray Layer.

    Terrain terrain

    Terrain.

    Returns
    Type Description
    bool

    True if it has any masks and processed the inspector to show properties.

    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)