{"id":717,"date":"2019-08-21T18:32:02","date_gmt":"2019-08-21T18:32:02","guid":{"rendered":"https:\/\/docs.sisus.co\/power-inspector\/?p=717"},"modified":"2021-03-24T17:44:37","modified_gmt":"2021-03-24T17:44:37","slug":"gameobject-drawer","status":"publish","type":"post","link":"https:\/\/docs.sisus.co\/power-inspector\/enhanced-drawers\/gameobject-drawer\/","title":{"rendered":"GameObject Drawer"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-72\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/04\/TargetObject.png\" alt=\"\" width=\"483\" height=\"212\" srcset=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/04\/TargetObject.png 483w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/04\/TargetObject-300x132.png 300w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/04\/TargetObject-150x66.png 150w\" sizes=\"(max-width: 483px) 100vw, 483px\" \/><\/p>\n<p>The <strong><a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/gui-instructions\/\">drawer<\/a><\/strong> for GameObjects offers a couple of enhancements over the <a href=\"https:\/\/docs.unity3d.com\/Manual\/class-GameObject.html\" target=\"_blank\" rel=\"noopener noreferrer\">GameObject Editor in the default inspector<\/a>.<\/p>\n<h1>Selectable<\/h1>\n<p>Unlike how it works in the default inspector, the GameObject drawer can now be <strong>selected<\/strong>. You can do this simply by <strong>clicking<\/strong> the header of the GameObject drawer, or <strong><a href=\"https:\/\/docs.sisus.co\/power-inspector\/features\/keyboard-navigation\/\">using the keyboard<\/a><\/strong>.<\/p>\n<p>This is useful, because it <strong>unlocks<\/strong> the ability to target the GameObject with various <strong>commands<\/strong> executed using <strong>keyboard shortcuts<\/strong>.<\/p>\n<h1>Copy-Paste Support<\/h1>\n<p>Just like all components and <a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/members\/\"><strong>class members<\/strong><\/a> in Power Inspector, GameObject values also be <strong><a href=\"https:\/\/docs.sisus.co\/power-inspector\/features\/copy-paste\/\">copied and pasted<\/a><\/strong>.<\/p>\n<h1>Reset Support<\/h1>\n<p>GameObjects can now also be <strong><a href=\"https:\/\/docs.sisus.co\/power-inspector\/features\/reset\/\">reset<\/a><\/strong>, just like Components.<\/p>\n<p>Values affected by reset include the <strong><a href=\"https:\/\/docs.unity3d.com\/ScriptReference\/GameObject-activeSelf.html\">active state<\/a><\/strong>, <strong><a href=\"https:\/\/docs.unity3d.com\/ScriptReference\/GameObject-tag.html\">tag<\/a><\/strong> and <a href=\"https:\/\/docs.unity3d.com\/ScriptReference\/GameObject-layer.html\"><strong>layer<\/strong><\/a>. It does not affect the name, however, as there&#8217;s really no sensible default state to revert to in its case.<\/p>\n<h1>Ping With Middle Mouse Button<\/h1>\n<p>You can now press the middle mouse button down while mouseovering the <strong><a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/drawer-header\/\">header<\/a><\/strong> of the GameObject drawer to <strong><a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/pinging\/\">ping<\/a><\/strong> the <strong><a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/target-object\/\">target<\/a><\/strong> GameObject.<\/p>\n<h1>Context Menu<\/h1>\n<p>GameObjects now also have a context menu, containing various useful commands you can execute, such as:<\/p>\n<ul>\n<li><strong>Ping<\/strong> &#8211; Pings the GameObject targets in the hierarchy or project view.<\/li>\n<li><strong>Deselect<\/strong> &#8211; Removes the GameObject targets from the current selection. This can be most useful when in <strong><a href=\"https:\/\/docs.sisus.co\/power-inspector\/features\/multi-editing-modes\/\">stacked multi-editing mode<\/a><\/strong>.<\/li>\n<li><strong>Select<\/strong> &#8211; Selects the GameObject targets.<\/li>\n<li><strong>Auto-Name<\/strong> &#8211; Names the GameObject based on the Components that it has.<\/li>\n<li><strong>Hierarchy Group<\/strong> &#8211; Turns the GameObject into a Hierarchy Group or reverts it back into a normal GameObject from a Hierarchy Group. Hierarchy Groups are special GameObjects intended to be used only as empty containers when organizing other GameObjects in the scene hierarchy.<\/li>\n<li><strong>Reset<\/strong> &#8211; Resets the state of the GameObject.<\/li>\n<li><strong>Collapse All<\/strong> &#8211; Folds all Components of GameObject inside the <strong><a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/inspector-view\/\">inspector view<\/a><\/strong>.<\/li>\n<li><strong>Expand All<\/strong> &#8211; Unfolds all Components of the GameObject in the inspector view.<\/li>\n<\/ul>\n<h2>Extended Context Menu Items<\/h2>\n<p>In addition to the items in the normal context menu, there are some additional menu items only found in the <strong><a href=\"https:\/\/docs.sisus.co\/power-inspector\/features\/context-menu-items\/\">extended context menu<\/a><\/strong>.<\/p>\n<ul>\n<li><strong>Inspect Static Members<\/strong> &#8211; Shows you the static class members of the GameObject class.<\/li>\n<li><strong>Hide Flags<\/strong> &#8211; Allows you to view and edit the <strong><a href=\"https:\/\/docs.unity3d.com\/ScriptReference\/Object-hideFlags.html\">hide flags<\/a><\/strong> of the GameObject.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The drawer for GameObjects offers a couple of enhancements over the GameObject Editor in the default inspector. Selectable Unlike how it works in the default inspector, the GameObject drawer can now be selected. You can do this simply by clicking the header of the GameObject drawer, or using the keyboard. This is useful, because it ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/docs.sisus.co\/power-inspector\/enhanced-drawers\/gameobject-drawer\/\" title=\"read more\">Read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[],"_links":{"self":[{"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts\/717"}],"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=717"}],"version-history":[{"count":17,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts\/717\/revisions"}],"predecessor-version":[{"id":1821,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts\/717\/revisions\/1821"}],"wp:attachment":[{"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/media?parent=717"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/categories?post=717"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/tags?post=717"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}