Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


HierarchySearchFilter

Encapsulates all data needed to filter a hierarchy.
Read time 1 minuteLast updated 11 days ago

Definition

  • Type: Struct
  • Namespace: Unity.Hierarchy
  • Assembly: UnityEngine.HierarchyCoreModule
public struct HierarchySearchFilter

Properties

Property

Description

IsValidWhether the filter is valid and has a name.
NameThe name of the filter.
OpThe filter search operator.
ValueThe textual value of the filter.

Static Properties

Property

Description

InvalidThe default invalid HierarchySearchFilter. This assumes the Hierarchy has a query, but is invalid, so no nodes are shown.

Methods

Method

Description

ToStringConverts a filter to its full textual value: \<FilerName\>\<Filter operator\>\<FilterValue\>. The textual value is escaped with double quotation marks if it is necessary.

Static Methods

Method

Description

ToOpConverts a textual value to its operator value if possible.
ToStringConverts an operator to its textual value.