{"id":135,"date":"2019-04-27T18:36:07","date_gmt":"2019-04-27T18:36:07","guid":{"rendered":"https:\/\/docs.sisus.co\/power-inspector\/?p=135"},"modified":"2021-03-24T17:25:24","modified_gmt":"2021-03-24T17:25:24","slug":"search-box","status":"publish","type":"post","link":"https:\/\/docs.sisus.co\/power-inspector\/features\/search-box\/","title":{"rendered":"05. Search Box"},"content":{"rendered":"<p>The search box (also known as the filter field) can be used to input keywords, which are then used to filter which <a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/drawer\/\">drawers<\/a> within the <a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/viewport\/\">viewport<\/a> are shown.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-943\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/04\/SearchBoxShowcase.gif\" alt=\"\" width=\"296\" height=\"488\" \/><\/p>\n<p>There are several different methods of searching, which you can specify by adding a special prefix before the search keyword.<\/p>\n<h1><strong>Search By Label<\/strong><\/h1>\n<p>Use the prefix <strong>&#8220;L:&#8221;<\/strong> to only show drawers whose label contains the keyword.<\/p>\n<blockquote><p><strong>Example<\/strong>: \u201cl:position\u201d or \u201cl:position.x\u201d<\/p><\/blockquote>\n<h1><strong>Search By Type<\/strong><\/h1>\n<p>Use the prefix <strong>&#8220;T:&#8221;<\/strong> to only show drawers whose type name contains the keyword.<\/p>\n<blockquote><p><strong>Example<\/strong>: \u201ct:vector3\u201d or \u201ct:system.obj\u201d<\/p><\/blockquote>\n<h1><strong>Search By Value<\/strong><\/h1>\n<p>Use the prefix <strong>&#8220;V:&#8221;<\/strong> to only show drawers whose value (converted to text) contains the keyword.<\/p>\n<blockquote><p><strong>Example<\/strong>: \u201cv:null\u201d or \u201cv:true\u201d<\/p><\/blockquote>\n<h1><strong>General Search<\/strong><\/h1>\n<p>If you don&#8217;t add any special prefix to your filter, then drawers whose label, type <strong>OR<\/strong> value contains the keyword are shown.<\/p>\n<blockquote><p><strong>Example<\/strong>: \u201cposition\u201d or \u201cleftarrow\u201d<\/p><\/blockquote>\n<h1>Search With Multiple Keywords<\/h1>\n<p>The search input may contain multiple keywords separated by a space character (\u2019 \u2018).<br \/>\nIn this case, drawers are only shown if they pass filtering tests against all of the keywords.<\/p>\n<blockquote><p><strong>Example<\/strong>: \u201ccamera depth\u201d or \u201cenum left\u201d.<\/p><\/blockquote>\n<h1>Search For Exact Match<\/h1>\n<p>If you want to search using exact matching instead of partial matching, you can do so by wrapping your search keywords inside quotation marks (&#8220;).<br \/>\nThis works with by label, by type, by value and general searches.<\/p>\n<blockquote><p><strong>Example<\/strong>: l:&#8221;x&#8221;\u00a0or &#8220;Time Scale&#8221;<\/p><\/blockquote>\n<h1><strong>Search For Class<\/strong><\/h1>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-1160\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/04\/search-field-in-static-class.png\" alt=\"\" width=\"454\" height=\"149\" srcset=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/04\/search-field-in-static-class.png 454w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/04\/search-field-in-static-class-300x98.png 300w\" sizes=\"(max-width: 454px) 100vw, 454px\" \/><\/p>\n<p>Use the prefix <strong>&#8220;C:&#8221;<\/strong> to search for a class whose <strong>name<\/strong> matches the given keyword <strong>exactly<\/strong>, and list all of its <strong>static<\/strong> members.<\/p>\n<p><strong style=\"color: #767676; font-size: 19px; font-style: italic;\">Example<\/strong><span style=\"color: #767676; font-size: 19px; font-style: italic;\">: &#8220;c:Time&#8221; or &#8220;c:UnityEngine.Time&#8221;<\/span><\/p>\n<h1><strong>Search In Scene<\/strong><\/h1>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-1408\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/04\/search-box-find-scene-targets.png\" alt=\"\" width=\"485\" height=\"315\" srcset=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/04\/search-box-find-scene-targets.png 485w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/04\/search-box-find-scene-targets-300x195.png 300w\" sizes=\"(max-width: 485px) 100vw, 485px\" \/><\/p>\n<p>Use the prefix <strong>&#8220;S:&#8221;<\/strong> to search for <strong><a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/unity-object\/\">Unity Objects<\/a><\/strong> in the current scene whose <strong>type name<\/strong> matches the given keyword <strong>exactly <\/strong>and display their data in the <strong><a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/inspector-view\/\">inspector view<\/a><\/strong>.<\/p>\n<p><strong>Pro tip:<\/strong> You can combine a scene search keyword with other keywords to quickly list specific class members from anywhere in the scene.<\/p>\n<p><strong style=\"color: #767676; font-size: 19px; font-style: italic;\">Example<\/strong><span style=\"color: #767676; font-size: 19px; font-style: italic;\">: &#8220;s:Camera&#8221; or &#8220;s:Light intensity&#8221;<\/span><\/p>\n<h1><strong>Search In Assets<\/strong><\/h1>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-1407\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/04\/search-box-find-assets.png\" alt=\"\" width=\"542\" height=\"315\" srcset=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/04\/search-box-find-assets.png 542w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/04\/search-box-find-assets-300x174.png 300w\" sizes=\"(max-width: 542px) 100vw, 542px\" \/><\/p>\n<p>Use the prefix <strong>&#8220;A:&#8221;<\/strong> to search for assets in your project folders whose <strong>file name<\/strong> <strong>includes<\/strong> the search filter and display their data in the <strong><a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/inspector-view\/\">inspector view<\/a><\/strong>.<\/p>\n<p><strong style=\"color: #767676; font-size: 19px; font-style: italic;\">Example<\/strong><span style=\"color: #767676; font-size: 19px; font-style: italic;\">: &#8220;c:Time&#8221; or &#8220;c:UnityEngine.Time&#8221;<\/span><\/p>\n<h1><strong>Search For Window<\/strong><\/h1>\n<p>Use the prefix <strong>&#8220;W:&#8221;<\/strong> to find a currently open <strong><a href=\"https:\/\/docs.unity3d.com\/ScriptReference\/EditorWindow.html\">EditorWindow<\/a><\/strong> whose <strong>type name<\/strong> matches the given keyword <strong>exactly<\/strong> and display its data in the inspector view.<br \/>\nThis can be useful for debugging EditorWindows you are developing, especially if you also activate <strong><a href=\"https:\/\/docs.sisus.co\/power-inspector\/features\/debug-mode\/\">Debug Mode+<\/a><\/strong>.<\/p>\n<p>You can use the <a href=\"https:\/\/docs.sisus.co\/power-inspector\/features\/23-editorwindow-debugger\/\"><strong>EditorWindow Debugger view menu item<\/strong><\/a> to see a list of all currently open windows.<\/p>\n<p><strong style=\"color: #767676; font-size: 19px; font-style: italic;\">Example<\/strong><span style=\"color: #767676; font-size: 19px; font-style: italic;\">: &#8220;w:MyEditorWindow&#8221; or &#8220;c:GameView&#8221;<\/span><\/p>\n<h1>Search Inside Collapsed Data Structures<\/h1>\n<p>During searching drawers matching the keyword are fetched from all data structures (Components, arrays, classes, structs) inside the viewport, even ones that are collapsed.<\/p>\n<h1>Search Inside Custom Editors<\/h1>\n<p>Searching also works for data inside Components and assets that use <a href=\"https:\/\/docs.unity3d.com\/Manual\/editor-CustomEditors.html\">Custom Editors<\/a>. In this case the Custom Editor is temporarily bypassed, and the searching takes place using the public fields and properties of the <a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/target-object\/\">target Object<\/a> instead.<\/p>\n<h1>Parents And Members Listed<\/h1>\n<p>When drawers pass the filtering test, their <a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/parent\/\">parent<\/a> and <a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/members\/\">member drawers<\/a> are also shown.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-137\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/04\/FilterParentsAndMembers.png\" alt=\"\" width=\"398\" height=\"214\" srcset=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/04\/FilterParentsAndMembers.png 398w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/04\/FilterParentsAndMembers-300x161.png 300w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/04\/FilterParentsAndMembers-150x81.png 150w\" sizes=\"(max-width: 398px) 100vw, 398px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The search box (also known as the filter field) can be used to input keywords, which are then used to filter which drawers within the viewport are shown. There are several different methods of searching, which you can specify by adding a special prefix before the search keyword. Search By Label Use the prefix &#8220;L:&#8221; ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/docs.sisus.co\/power-inspector\/features\/search-box\/\" title=\"read more\">Read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":139,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[17,15,16],"_links":{"self":[{"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts\/135"}],"collection":[{"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/comments?post=135"}],"version-history":[{"count":19,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts\/135\/revisions"}],"predecessor-version":[{"id":1786,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts\/135\/revisions\/1786"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/media\/139"}],"wp:attachment":[{"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/media?parent=135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/categories?post=135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/tags?post=135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}