Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


FilterFunction

Represents a filter function that holds the definition and parameters of a filter.
Read time 1 minuteLast updated 6 days ago

Definition

public struct FilterFunction : IEquatable<FilterFunction>

Constructors

Constructor

Description

FilterFunction(UnityEngine.UIElements.FilterFunctionDefinition)Initializes a new custom filter function with the specified FilterFunctionDefinition.
FilterFunction(UnityEngine.UIElements.FilterFunctionType)Initializes a new filter function with the specified FilterFunctionType.

Properties

Property

Description

customDefinitionThe custom filter function definition, when the filter function type is FilterFunctionType.Custom.
parameterCountThe number of parameters in the filter function.
typeThe type of the filter function.

Methods

Method

Description

AddParameterAdds a parameter to the filter function.
ClearParametersClears all parameters from the filter function.
GetParameterGets the parameter at the specified index.
SetParameterSets a parameter to the filter function at the provided index.