docs.unity3d.com
    Show / Hide Table of Contents

    Class FilterStack

    Provides methods for handling individual Filter within a FilterStack.

    Inheritance
    Object
    Object
    ScriptableObject
    FilterStack
    Inherited Members
    UnityEngine.ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(String)
    ScriptableObject.CreateInstance(Type)
    UnityEngine.ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    UnityEngine.Object.GetHashCode()
    UnityEngine.Object.Equals(System.Object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, Boolean)
    UnityEngine.Object.Instantiate<T>(T)
    UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion)
    UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
    UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform)
    UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform, System.Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, Boolean)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    UnityEngine.Object.DestroyObject(UnityEngine.Object, System.Single)
    UnityEngine.Object.DestroyObject(UnityEngine.Object)
    UnityEngine.Object.FindSceneObjectsOfType(System.Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    UnityEngine.Object.FindObjectsOfType<T>()
    UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
    UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
    UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
    UnityEngine.Object.FindObjectOfType<T>()
    UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
    UnityEngine.Object.FindFirstObjectByType<T>()
    UnityEngine.Object.FindAnyObjectByType<T>()
    UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
    UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, Boolean)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEditor.TerrainTools
    Syntax
    [Serializable]
    public class FilterStack : ScriptableObject

    Fields

    filters

    The System.Collections.Generic.List`1 that contains all the Filters for this FilterStack.

    Declaration
    [SerializeField]
    public List<Filter> filters
    Field Value
    Type Description
    List<Filter>

    Properties

    hasEnabledFilters

    Checks if the filters are enabled.

    Declaration
    public bool hasEnabledFilters { get; }
    Property Value
    Type Description
    Boolean

    Methods

    Add(Filter)

    Adds a Filter reference to the end of the FilterStack list of Filters.

    Declaration
    public void Add(Filter filter)
    Parameters
    Type Name Description
    Filter filter

    The Filter reference to add.

    Clear(Boolean)

    Removes all Filters.

    Declaration
    public void Clear(bool destroy = false)
    Parameters
    Type Name Description
    Boolean destroy

    When the value is true, the filters will be destroyed.

    Eval(FilterContext, RenderTexture, RenderTexture)

    Evaluates the FilterStack. Composited result will be copied into fc.destinationRenderTexture.

    Declaration
    public void Eval(FilterContext fc, RenderTexture source, RenderTexture dest)
    Parameters
    Type Name Description
    FilterContext fc

    The FilterContext that should be used for composition.

    RenderTexture source

    The source render texture to blit from.

    RenderTexture dest

    The destination render texture for blitting to.

    Insert(Int32, Filter)

    Inserts the specified Filter at the specified index.

    Declaration
    public void Insert(int index, Filter filter)
    Parameters
    Type Name Description
    Int32 index

    The index at which the Filter reference should be inserted.

    Filter filter

    The Filter reference to insert.

    Remove(Filter)

    Removes the specified Filter.

    Declaration
    public bool Remove(Filter filter)
    Parameters
    Type Name Description
    Filter filter

    The Filter reference to remove.

    Returns
    Type Description
    Boolean

    Returns true if the specified Filter was found and removed; otherwise, returns false.

    RemoveAt(Int32)

    Removes the Filter at the specified index.

    Declaration
    public void RemoveAt(int index)
    Parameters
    Type Name Description
    Int32 index

    The index of the Filter to be removed.

    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