示例#1
0
 protected override IEnumerable <IFinderResult> GetObjectResults(IFinderContext context)
 {
     return(Object.FindObjectsOfType <Transform>()
            .Where(t => context.GetIsMatchForTerm(t.name))
            .OrderBy(t => t.GetSiblingIndex())
            .Select <Transform, IFinderResult>(t => new HierarchyResult(t.gameObject)));
 }
示例#2
0
 protected override IEnumerable <IFinderResult> GetObjectResults(IFinderContext context)
 {
     return(Object.FindObjectsOfType <Component>()
            .Where(c => !ignoredTypes.Contains(c.GetType()) &&
                   context.GetIsMatchForTerm(ObjectNames.GetInspectorTitle(c)))
            .Select <Component, IFinderResult>(c => new ComponentResult(c)));
 }