本文整理汇总了C#中SearchFilter.SearchFieldStringToFilter方法的典型用法代码示例。如果您正苦于以下问题:C# SearchFilter.SearchFieldStringToFilter方法的具体用法?C# SearchFilter.SearchFieldStringToFilter怎么用?C# SearchFilter.SearchFieldStringToFilter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SearchFilter
的用法示例。
在下文中一共展示了SearchFilter.SearchFieldStringToFilter方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FilterSettingsChanged
private void FilterSettingsChanged()
{
SearchFilter searchFilter = new SearchFilter();
searchFilter.SearchFieldStringToFilter(this.m_SearchFilter);
if (!string.IsNullOrEmpty(this.m_RequiredType))
{
searchFilter.classNames = new string[] { this.m_RequiredType };
}
this.m_ListArea.Init(this.listPosition, !this.m_IsShowingAssets ? HierarchyType.GameObjects : HierarchyType.Assets, searchFilter, true);
}
示例2: FilterSettingsChanged
private void FilterSettingsChanged()
{
SearchFilter searchFilter = new SearchFilter();
searchFilter.SearchFieldStringToFilter(this.m_SearchFilter);
if (!string.IsNullOrEmpty(this.m_RequiredType))
{
searchFilter.classNames = new string[] { this.m_RequiredType };
}
HierarchyType hierarchyType = !this.m_IsShowingAssets ? HierarchyType.GameObjects : HierarchyType.Assets;
if ((EditorSceneManager.preventCrossSceneReferences && (hierarchyType == HierarchyType.GameObjects)) && (this.m_ObjectBeingEdited != null))
{
Scene sceneFromObject = this.GetSceneFromObject(this.m_ObjectBeingEdited);
if (sceneFromObject.IsValid())
{
searchFilter.scenePaths = new string[] { sceneFromObject.path };
}
}
this.m_ListArea.Init(this.listPosition, hierarchyType, searchFilter, true);
}