文档

Unity Engine

Unity Engine

ToOp(string)

Converts a textual value to its operator value if possible.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: Unity.Hierarchy
  • Assembly: UnityEngine.HierarchyCoreModule
public static HierarchySearchFilterOperator ToOp(string op)

Parameters

The textual operator. For example: =, <=, :, and ....

Returns

Type

Description

HierarchySearchFilterOperatorThe
HierarchySearchFilterOperator
that matches the parsed string. For example, this function parses the string "=" and converts it to
HierarchySearchFilterOperator.Equal
.