Example #1
0
        internal static bool SelectObject(ObjectSelectorSearchContext context, Action <Object, bool> onObjectSelectorClosed, Action <Object> onObjectSelectedUpdated)
        {
            var activeEngine = k_EngineImp.activeSearchEngine;

            try
            {
                return(activeEngine.SelectObject(context, onObjectSelectorClosed, onObjectSelectedUpdated));
            }
            catch (Exception ex)
            {
                k_EngineImp.HandleUserException(ex);
                return(false);
            }
        }
Example #2
0
        internal static bool Filter(string query, HierarchyProperty objectToFilter, SceneSearchContext context)
        {
            var activeEngine = k_EngineImp.activeSearchEngine;

            try
            {
                return(activeEngine.Filter(context, query, objectToFilter));
            }
            catch (Exception ex)
            {
                k_EngineImp.HandleUserException(ex);
                return(false);
            }
        }
Example #3
0
        internal static IEnumerable <string> Search(string query, ProjectSearchContext context, Action <IEnumerable <string> > asyncItemsReceived)
        {
            var activeEngine = k_EngineImp.activeSearchEngine;

            try
            {
                return(activeEngine.Search(context, query, asyncItemsReceived));
            }
            catch (Exception ex)
            {
                k_EngineImp.HandleUserException(ex);
                return(null);
            }
        }