docs.unity3d.com
    Show / Hide Table of Contents

    Class FilterUtility

    Provides methods for utility purposes.

    Inheritance
    Object
    FilterUtility
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEditor.TerrainTools
    Syntax
    public static class FilterUtility

    Fields

    filterPreviewKeyword

    The shader keyword for enabling the filter preview.

    Declaration
    public static readonly string filterPreviewKeyword
    Field Value
    Type Description
    String

    Properties

    blendModesMaterial

    Gets the Material for blend mode passes.

    Declaration
    public static Material blendModesMaterial { get; }
    Property Value
    Type Description
    Material

    builtinMaterial

    Gets the Material used for built-in Filters like Add and Multiply.

    Declaration
    public static Material builtinMaterial { get; }
    Property Value
    Type Description
    Material

    defaultFormat

    Gets the default GraphicsFormat used to evaluate Filters and FilterStacks.

    Declaration
    public static GraphicsFormat defaultFormat { get; }
    Property Value
    Type Description
    GraphicsFormat
    Remarks

    Returns GraphicsFormat.R16_SFloat when the GraphicsFormat is supported by the active Graphics API. If it is not supported, for example on Vulkan, OpenGLES3, and OpenGLES2, GraphicsFormat.R8G8_UNorm is returned instead.

    Methods

    CreateInstance(Type)

    Creates an instance of the provided Filter type

    Declaration
    public static Filter CreateInstance(Type t)
    Parameters
    Type Name Description
    Type t

    The type of Filter to create

    Returns
    Type Description
    Filter

    Returns the Filter instance.

    CreateInstance<T>()

    Creates an instance of generic type T where T inherits from Filter

    Declaration
    public static T CreateInstance<T>()
        where T : Filter
    Returns
    Type Description
    T

    Returns the Filter instance.

    Type Parameters
    Name Description
    T

    The type of Filter to create

    Back to top
    Copyright © 2023 Unity Technologies
    • 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 Friday, November 3, 2023