76 Commits

Author SHA1 Message Date
yasirkula 1db9dbf9b0 Fixed issues with mysterious empty dependencies returned by AssetDatabase.GetDependencies v1.9.5 2021-06-09 12:35:25 +03:00
yasirkula a6b0f5ae92 Unity 2020 support v1.9.4 2021-05-18 13:47:38 +03:00
Süleyman Yasir KULA 8e7369e44e Some properties in Project Settings like "Quality Settings->SRP Asset" weren't included in search, fixed v1.9.3 2021-03-28 19:57:44 +03:00
Süleyman Yasir KULA 7b60eeacf7 If an exception occurs while searching for references via reflection, the problematic object will be skipped and a warning will be logged to the console instead of interrupting the whole search v1.9.2 2021-03-17 16:13:24 +03:00
Süleyman Yasir KULA b8470536b9 - Following variables of ParticleSystem are now included in search: LightsModule->Light, CollisionModule->Plane, TriggerModule->Collider
- Improved readability of texts in dark Editor skin
- Fixed "Animator is not playing an AnimatorController" warnings
- Fixed "TMP_Sprite Animator" component getting added to TextMesh Pro objects in the scene while searching for a scene object's references at runtime
v1.9.1
2021-03-14 17:15:00 +03:00
Süleyman Yasir KULA 1bebc8691d Update package.json
Added documentationUrl, changelogUrl and licensesUrl to package.json
2021-01-19 12:51:21 +03:00
Süleyman Yasir KULA 5a81e5011b While using the Search for References button in right-click menu, if current scene setup is different from the initial scene setup, plugin now asks user whether or not they want to restore the initial scene setup instead of automatically restoring the initial scene setup v1.9.0 2020-12-22 22:46:22 +03:00
Süleyman Yasir KULA ba7539d983 References from Animator Override Controllers to their base Animator Controllers are now found v1.8.9 2020-11-18 13:46:42 +03:00
Süleyman Yasir KULA f4129574fb - Custom meshes used in ParticleSystem's Renderer module weren't included in the search, fixed
- Fix an exception that occurred when searching an Assembly Definition File's references if one of its References was missing
v1.8.8
2020-10-01 13:43:23 +03:00
Süleyman Yasir KULA 7738da9d19 "Search for References-Include Children" didn't include inactive child objects in search, fixed v1.8.7 2020-09-23 23:12:47 +03:00
Süleyman Yasir KULA 077505a217 Fixed a rare issue that occurs when searching properties with ref returns for references in Play mode v1.8.6 2020-08-20 12:24:37 +03:00
Süleyman Yasir KULA 003cedd363 - Added 2 options to the "Search for References" button in Hierarchy objects' context (right-click) menu: "This Object Only" and "Include Children"
- In search results, "arrayVariable.Array.data[0]" is now displayed as "arrayVariable[0]"
v1.8.5
2020-08-08 19:52:59 +03:00
Süleyman Yasir KULA 68f1b2809e - Previous HideInInspector solution wasn't working if a nested variable had HideInInspector, replaced it with a better solution
- Added SerializeReference support
- Added 2020.1 generic types support
- Fixed deprecated warning messages on 2020.1
v1.8.4
2020-07-27 14:15:08 +03:00
Süleyman Yasir KULA 6280305a63 - Searching for references of a prefab stage object in newest Unity versions wasn't working, fixed
- Fields marked with HideInInspector (and with SerializeReference, possibly) weren't searched for references when SearchVariablesWithSerializedObject was used, fixed
v1.8.2
2020-07-16 22:39:41 +03:00
Süleyman Yasir KULA 5d04e70b7b Added support for new Shader Graph serialization format v1.8.1 2020-07-04 17:34:00 +03:00
Süleyman Yasir KULA 541e33db89 - Added Shader Graph support (will probably stop working after the serialization format changes: https://github.com/Unity-Technologies/Graphics/pull/222)
- Added support for searching the "#include" lines in shader source codes (e.g. to find references to included .cginc files)
- Default Texture/Object variables assigned to Shader and MonoScript assets via Inspector are now included in search
- Split AssetUsageDetector class into multiple C# files so that it is easier to navigate to the desired variables/functions
2020-07-02 12:12:19 +03:00
Süleyman Yasir KULA bc3a8069b4 - Project Settings are now searched for references
- Fixed #20
v1.8.0
2020-06-27 00:18:45 +03:00
Süleyman Yasir KULA 98d1f43180 References to "SceneAsset"s are now found (fixes #22) v1.7.9 2020-06-16 18:46:22 +03:00
Süleyman Yasir KULA 7d24aa4939 Update package.json v1.7.8 2020-05-29 21:23:42 +03:00
Süleyman Yasir KULA c16bef45cd - Assembly Definition Files' "Assembly Definition References" are now included in the search
- Refreshing the "Project Window (Assets)" group in search results page wasn't working sometimes, fixed
- Tooltips were hard to see in 2019.3+, fixed
2020-05-29 15:27:21 +03:00
Süleyman Yasir KULA 7b939a2104 no message v1.7.7 2020-05-14 20:05:42 +03:00
Süleyman Yasir KULA ccf3e2f733 Added OpenUPM instructions 2020-05-14 20:04:02 +03:00
Süleyman Yasir KULA c6b1edfd93 no message 2020-04-28 12:36:27 +03:00
Süleyman Yasir KULA 7358b12609 Added Package Manager support 2020-04-28 12:22:48 +03:00
Süleyman Yasir KULA ab539adc54 Added donation link (thank you for using my assets, and a special thanks if you consider donating) 2020-04-09 15:26:37 +03:00
Süleyman Yasir KULA 4909b9c558 Updated Asset Store link 2020-03-03 15:46:26 +03:00
Süleyman Yasir KULA 94381ff7d2 - Added Window-Asset Usage Detector-New Window menu item
- Fixed #19
- Fixed compilation errors when using a SRP
2020-02-15 13:57:08 +03:00
Süleyman Yasir KULA 17d3b33e8e References from one sub-asset to the other were skipped when "Don't search 'Find references of' themselves for references" was enabled (e.g. a reference from a prefab's child A to child B was skipped while searching for B's references), now fixed. v1.7.6 2020-02-08 23:54:48 +03:00
Süleyman Yasir KULA ff193224e9 - Objects animated via Animation and/or Animator components are now searched for references
- NativeArrays are no longer searched for references, iterating over them can throw InvalidOperationException if the collection is disposed. It shouldn't matter since NativeArrays are meant to store only blittable structs which can't have any Object references (+surprisingly, it can reduce the search time substantially in some projects)
- Fixed tooltips getting culled by the AssetUsageDetector window in the search results page
v1.7.5
2020-01-23 16:13:08 +03:00
Süleyman Yasir KULA 51abec24d7 Fixed compilation error on 2019.3 v1.7.4 2020-01-02 14:09:12 +03:00
Süleyman Yasir KULA a29dc59a75 - Now using GUI instead of GUILayout to draw the search results which results in much better GUI performance
- Fixed a StackOverflowException
v1.7.3
2019-11-19 23:07:25 +03:00
Süleyman Yasir KULA 96315ec435 For references found inside enumerators like arrays, reflection algorithm now shows the array index that the reference is found at instead of a generic "(IEnumerable)" v1.7.1 2019-11-10 12:34:51 +03:00
Süleyman Yasir KULA 12ed06d43c - Added Refresh button to groups (scene/project window) in search results page to refresh the search results for that particular group
- Added collapse/expand button to groups in search results page
- Added lazy scene search option: when enabled, unloaded scenes that have potential references are not loaded immediately; instead, they are searched on demand (via Refresh button)(faster search)
- Search algorithm now prefers SerializedObjects when possible, uses reflection as fallback
- Added "Search for References" to Hierarchy objects' right-click context menu
- Searching for references of objects in prefab mode is now supported
- A simple search progress bar is now always shown, but is not refreshed frequently unless "Show detailed progress bar" is enabled and thus, it won't affect the search performance noticably
- Removed settings like "Search properties" and "Search depth", it doesn't make much sense to limit the search algorithm in an asset whose sole purpose is to find "all" references
- Removed "Select All (GameObject-wise)" and "Select All (Component-wise)" buttons (use CTRL or Shift keys to enable multi-select while clicking search entries in results page)
- Double clicking a prefab entry in search results page will now open that prefab in prefab mode
v1.7
2019-11-09 17:22:35 +03:00
Süleyman Yasir KULA 69ce197932 Catching MissingComponentException v1.5.6 2019-10-18 23:53:25 +03:00
Süleyman Yasir KULA e3dc45b917 - Fixed FileNotFoundException on directories
- Fixed NullReferenceException on properties without a getter
- Fixed ArgumentException on pointer types
v1.5.5
2019-10-15 22:40:06 +03:00
Süleyman Yasir KULA 3719ce7473 Fixes #13 v1.5.2 2019-09-28 12:54:50 +03:00
Süleyman Yasir KULA b4b3e7d7b3 Fixed "Scenes in Build Settings" always being true v1.5.1 2019-09-20 23:09:44 +03:00
Süleyman Yasir KULA 0cd657456d - Fixed cache issue that occurred after an asset was renamed
- Added an option to include non-serializable objects in search since some seemingly non-serializable Unity types are actually serialized with Unity magic (e.g. AnimatorControllerLayer)
- It is now possible to exclude some asset(s) and/or scene(s) from the search
- Added optional progressbar
v1.5
2019-09-20 01:28:15 +03:00
Süleyman Yasir KULA 64eb175f8f Fixes #10 2019-08-10 14:16:17 +03:00
Süleyman Yasir KULA 06fbd6cb96 Updated README 2019-08-03 21:14:58 +03:00
Süleyman Yasir KULA 3cea7a93e7 - Added "Assets/Search For References" context menu item to quickly search for the selected object(s)' references
- Added AssetUsageDetectorWindow.ShowAndSearch function to initiate a search from editor scripts
- Object references added to animation events are now searched
- Faster serialization/deserialization of the cache (replaced BinaryFormatter with BinaryWriter, this will trigger a new cache initialization at first search)
- Some UI elements now use a different GUIStyle (for better readability on dark skin)
2019-08-03 21:06:06 +03:00
Süleyman Yasir KULA dc6e9de462 - Fixed StackOverflowException in AssetHasAnyReferenceTo
- Much better support for AnimatorControllers
- Fixed an issue with scenes sometimes not getting searched properly in play mode
- Some more performance optimizations
2019-07-26 23:53:42 +03:00
Süleyman Yasir KULA 7eebd05c2f Fixed SpriteAtlas error on versions 2017.1 to 2018.1 2019-07-20 00:25:42 +03:00
Süleyman Yasir KULA 64408e3eb2 - Bugfix for System.Reflection.Assembly variables throwing exceptions on .NET 4.0 runtime
- Preferences in Asset Usage Detector window are now saved
- Moved utility/internal classes into separate namespace
2019-07-06 13:06:20 +03:00
Süleyman Yasir KULA 93b8b267eb New version's public release!
NOTE: changed license to MIT
2019-07-06 02:19:17 +03:00
Süleyman Yasir KULA d8c7d7b1e6 - Simplified the output nodes:
- multiple links from same node to same node are combined into a single node
  - root nodes that are part of another node's siblings are omitted
- Added Timeline, Sprite Atlas and Tilemap support
- Bugfix for structs' property getters throwing exception
2019-07-06 02:05:34 +03:00
Süleyman Yasir KULA 50820f7cb6 - Made AssetUsageDetector a standalone editor script, so you can now use it in your own editor scripts to calculate some objects' references
- Separated more classes into different scripts
2019-07-02 19:43:40 +03:00
Süleyman Yasir KULA b804967674 - Searching references in a subset of the Project view (Assets folder) is now possible 2019-07-01 23:49:00 +03:00
Süleyman Yasir KULA fcbfcb41cf - Each searched asset now has its own toggleable sub-assets
- Adding folders to searched assets is now possible
2019-07-01 23:29:50 +03:00
Süleyman Yasir KULA 8d3e8e7738 - Caching asset dependencies for faster calculations
- Dependencies are checked via their paths, so loading the asset is not necessary and much less memory will be used
- Separated AssetUsageDetector.cs into smaller classes
2019-07-01 23:27:21 +03:00