public static void LoadAllAssetsOfType(string type) { HierarchyProperty hierarchyProperty = new HierarchyProperty(1); hierarchyProperty.SetSearchFilter(type, 2); while (hierarchyProperty.Next(null)) { AssetDatabase.LoadMainAssetAtPath(AssetDatabase.GetAssetPath(hierarchyProperty.get_instanceID())); } }