├── Documentation~ ├── Example.gif └── Github Header.jpg ├── Editor ├── Resources │ ├── GuidSearchWindow Icon.psd │ ├── d_GuidSearchWindow Icon.psd │ ├── GuidSearchWindow Icon.psd.meta │ └── d_GuidSearchWindow Icon.psd.meta ├── GuidSearchWindow.uss ├── Extensions.meta ├── Resources.meta ├── RoyTheunissen.GUIDSearch.Editor.asmdef.meta ├── Extensions │ ├── StringExtensions.cs.meta │ └── StringExtensions.cs ├── GuidSearchWindow.uxml.meta ├── GuidSearchWindow.uss.meta ├── GuidSearchWindow.cs.meta ├── RoyTheunissen.GUIDSearch.Editor.asmdef ├── GuidSearchWindow.uxml └── GuidSearchWindow.cs ├── LICENSE.meta ├── README.md.meta ├── package.json.meta ├── Editor.meta ├── package.json ├── LICENSE └── README.md /Documentation~/Example.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoyTheunissen/GUID-Search/HEAD/Documentation~/Example.gif -------------------------------------------------------------------------------- /Documentation~/Github Header.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoyTheunissen/GUID-Search/HEAD/Documentation~/Github Header.jpg -------------------------------------------------------------------------------- /Editor/Resources/GuidSearchWindow Icon.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoyTheunissen/GUID-Search/HEAD/Editor/Resources/GuidSearchWindow Icon.psd -------------------------------------------------------------------------------- /Editor/Resources/d_GuidSearchWindow Icon.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoyTheunissen/GUID-Search/HEAD/Editor/Resources/d_GuidSearchWindow Icon.psd -------------------------------------------------------------------------------- /Editor/GuidSearchWindow.uss: -------------------------------------------------------------------------------- 1 | .custom-label { 2 | font-size: 20px; 3 | -unity-font-style: bold; 4 | color: rgb(68, 138, 255); 5 | } 6 | 7 | .unity-scroll-view { 8 | } 9 | -------------------------------------------------------------------------------- /LICENSE.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 12074ca857224324a8e1dfa598600ca5 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9e38349450592e84d9d73787d751b407 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 461401924406e2641890f9555ee5f1c9 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3d8c5a37308c3c748aae10687fddd706 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Editor/Extensions.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e05c8648aeb276c45aeb25c09f9dc505 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Editor/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a35021358fa8a74429cee584309a87cd 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Editor/RoyTheunissen.GUIDSearch.Editor.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c2a5a88d56aace44ab7d6c084e330450 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Editor/Extensions/StringExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 399ffb6d9766d384ba16648d29ce2ae1 3 | timeCreated: 1470404105 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Editor/GuidSearchWindow.uxml.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bc70bd56b4b977142bca373beba987cf 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0} 11 | -------------------------------------------------------------------------------- /Editor/GuidSearchWindow.uss.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e0af0fe7f2aa61347b924305628bfc8b 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0} 11 | disableValidation: 0 12 | -------------------------------------------------------------------------------- /Editor/GuidSearchWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5b3d9aa3980a38042a669a5cbcb52756 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: 7 | - m_VisualTreeAsset: {fileID: 9197481963319205126, guid: bc70bd56b4b977142bca373beba987cf, 8 | type: 3} 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Editor/RoyTheunissen.GUIDSearch.Editor.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "RoyTheunissen.GUIDSearch.Editor", 3 | "rootNamespace": "RoyTheunissen.GUIDSearch", 4 | "references": ["GUID:343deaaf83e0cee4ca978e7df0b80d21","GUID:2bafac87e7f4b9b418d9448d219b01ab"], 5 | "includePlatforms": [ 6 | "Editor" 7 | ], 8 | "excludePlatforms": [], 9 | "allowUnsafeCode": false, 10 | "overrideReferences": false, 11 | "precompiledReferences": [], 12 | "autoReferenced": true, 13 | "defineConstraints": [], 14 | "versionDefines": [], 15 | "noEngineReferences": false 16 | } -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.roytheunissen.guid-search", 3 | "displayName": "GUID Search", 4 | "version": "0.0.3", 5 | "unity": "2022.3", 6 | "description": "Sometimes you really need to find all the places where an asset is being referenced, and Unity's own search solutions are too unreliable for this.", 7 | "keywords": [ 8 | "Search", 9 | "Utility", 10 | "Tool", 11 | "Assets" 12 | ], 13 | "author": { 14 | "name": "Roy Theunissen", 15 | "url": "https://www.roytheunissen.com" 16 | }, 17 | "category": "Tools", 18 | "homepage": "https://github.com/RoyTheunissen/GUID-Search", 19 | "repository": { 20 | "type": "git", 21 | "url": "https://github.com/RoyTheunissen/GUID-Search" 22 | }, 23 | "bugs": "https://github.com/RoyTheunissen/GUID-Search/issues" 24 | } 25 | -------------------------------------------------------------------------------- /Editor/Extensions/StringExtensions.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | 3 | namespace RoyTheunissen.GuidSearch 4 | { 5 | internal static class StringExtensions 6 | { 7 | public static string RemovePrefix(this string name, string prefix) 8 | { 9 | if (string.IsNullOrEmpty(name) || string.IsNullOrEmpty(prefix)) 10 | return name; 11 | 12 | if (!name.StartsWith(prefix)) 13 | return name; 14 | 15 | return name.Substring(prefix.Length); 16 | } 17 | 18 | private static readonly char[] DirectorySeparators = 19 | { Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar }; 20 | 21 | public static string GetParentDirectory(this string path) 22 | { 23 | int lastDirectorySeparator = path.LastIndexOfAny(DirectorySeparators); 24 | if (lastDirectorySeparator == -1) 25 | return path; 26 | 27 | return path.Substring(0, lastDirectorySeparator); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Roy Theunissen 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Editor/GuidSearchWindow.uxml: -------------------------------------------------------------------------------- 1 | 2 |