Пример #1
0
        private static void SearchComponentType(string searchTerm, bool caseSensitive, bool includeInactive, bool matchWholeWord, HashSet <int> searchResults)
        {
            List <Type> results = ReflectionHelper.GetTypesByName(searchTerm, caseSensitive, matchWholeWord);

            if (results != null)
            {
                HierarchyHelper.GetGameObjectsWithTypes(results, includeInactive).ForEach(
                    go =>
                {
                    int instanceId = go.GetInstanceID();
                    searchResults.Add(instanceId);
                    EditorGUIUtility.PingObject(instanceId);
                });
            }
        }
Пример #2
0
 public static List <GameObject> GetGameObjectsWithPropertyType(string propertyType, bool caseSensitive, bool includeInactive, bool matchWholeWord)
 {
     return(GetGameObjectsWithPropertyTypes(ReflectionHelper.GetTypesByName(propertyType, caseSensitive, matchWholeWord), includeInactive));
 }
Пример #3
0
 public static List <Type> GetScriptDependenciesForAssetPath(string path)
 {
     return(GetDependenciesForAssetPath(path, SCRIPT_EXTENSION)
            .Select(dep => ReflectionHelper.GetTypesByName(Path.GetFileNameWithoutExtension(dep), true, true).FirstOrDefault())
            .ToList());
 }