HierarchySearchQueryDescriptor

class in Unity.Hierarchy

/

Implemented in:UnityEngine.HierarchyCoreModule

Description

Encapsulates all the query filters and text values that are used to filter a hierarchy.

Static Properties

Empty The default empty query.
InvalidQuery The default invalid query.

Properties

Filters User-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.
Invalid Whether the query invalid. An invalid query yields no node.
IsEmpty Whether the query is empty.
IsSystemOnlyQuery Whether the query uses system filters. This means NodeHandlers won't be called for filtering.
IsValid Whether the query is valid.
Strict Whether the query is evaluated strictly. This means that if any filters are invalid, then the whole query is invalid.
SystemFilters The filters used by the hierarchy. Filters are in this form: [filterName][operator][filterValue]. For example: nodetype:gameobject. These filters are global to all NodeHandlers.
TextValues All textual values. For example: "cube"

Constructors

HierarchySearchQueryDescriptor The constructor for a query.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961