63 Commits

Author SHA1 Message Date
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
Süleyman Yasir KULA 06ff1db30b Live on Asset Store! 2018-03-16 11:47:54 +03:00
Süleyman Yasir KULA f314fbe4ff Bugfix 2018-03-02 23:22:00 +03:00
Süleyman Yasir KULA 9c73e5f3df Search results now survive assembly reload/play mode changes + a critical bugfix 2018-03-02 21:26:09 +03:00
Süleyman Yasir KULA 08ed26d059 Now supports searching multiple assets at once
Thanks to @julkiewicz for giving the inspiration with his fork
2018-03-02 01:55:56 +03:00
Süleyman Yasir KULA 57f33467d2 Licensed under BSD 0-Clause 2018-02-16 00:41:34 +03:00
Süleyman Yasir KULA fbf3281938 Removed MIT LICENSE
No need to include copyright notice in the software
2018-01-27 18:53:35 +03:00
Süleyman Yasir KULA 15d71388a7 Bugfix 2018-01-19 19:48:57 +03:00
Süleyman Yasir KULA 7f9f17f1da Private variables in base classes are now searched
Also some minor optimizations
2018-01-19 18:21:35 +03:00
Süleyman Yasir KULA ec7e7782ef Update AssetUsageDetector.cs
minor bugfix
2017-09-18 20:40:45 +03:00
Süleyman Yasir KULA 74829e85de Update AssetUsageDetector.cs
- Resolved a serious bug that had the potential to affect the short path calculation times drastically
- Added CTRL + left click multi-selection ability
2017-09-16 14:50:33 +03:00
Süleyman Yasir KULA 96e9d1492c Added shortest path drawing mode + minor bugfixes
+ Added option to select which sub-assets to include in search (if any)
+ Scripts that extend currently searched MonoScript asset can now also be included in search
+ Paths to references found in Assets folder now start with the root game object
2017-08-28 23:27:36 +03:00
Süleyman Yasir KULA 46ade97129 Update README.md 2017-08-17 20:58:36 +03:00
Süleyman Yasir KULA b4339fcd95 Major update to v2.0!
- Now a better tool in almost any way: usability, accuracy and speed (most of the time)
- Can now search custom classes and structs (non UnityEngine.Object deriven)
- Ability to see the complete paths to the references in the fresh new node-based results page
- Added option to search private properties
- Added option to include sub-assets in search as well (if any), like animation clips or the mesh data of an imported model
- Search ScriptableObject's in the project
2017-08-17 20:18:24 +03:00