Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


HierarchySearchQueryDescriptor

Encapsulates all the query filters and text values that are used to filter a hierarchy.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Class
  • Namespace: Unity.Hierarchy
  • Assembly: UnityEngine.HierarchyCoreModule
public sealed class HierarchySearchQueryDescriptor

Constructors

Properties

Property

Description

FiltersUser-defined filters. Filters are in this form
[filterName][operator][filterValue]
. For example:
t:Light
. Each of these filters can be used by a NodeHandler to filter according to domain-specific characteristics.
InvalidWhether the query is invalid. An invalid query yields no node.
IsEmptyWhether the query is empty.
IsSystemOnlyQueryWhether the query uses system filters. This means NodeHandlers won't be called for filtering.
IsValidWhether the query is valid.
QueryGet the query built from all the filter and text values.
StrictWhether the query is evaluated strictly. This means that if any filters are invalid, then the whole query is invalid.
SystemFiltersThe filters used by the hierarchy. Filters are in this form:
[filterName][operator][filterValue]
. For example:
nodetype:gameobject
. These filters are global to all NodeHandlers.
TextValuesAll textual values. For example: "cube"

Static Properties

Property

Description

EmptyThe default empty query.
InvalidQueryThe default invalid query.

Methods

Method

Description

ToStringConverts the query to textual form. A textual query is of the form: \<All system Filters\> \<All user filters\> \<All textual values\>.