{"id":384,"date":"2019-05-01T19:12:04","date_gmt":"2019-05-01T19:12:04","guid":{"rendered":"https:\/\/docs.sisus.co\/power-inspector\/?p=384"},"modified":"2021-03-24T17:47:03","modified_gmt":"2021-03-24T17:47:03","slug":"transform-drawer","status":"publish","type":"post","link":"https:\/\/docs.sisus.co\/power-inspector\/enhanced-drawers\/transform-drawer\/","title":{"rendered":"Transform Drawer"},"content":{"rendered":"<p>The <strong><a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/gui-instructions\/\">drawer<\/a><\/strong> for the <strong><a href=\"https:\/\/docs.unity3d.com\/Manual\/class-Transform.html\">transform component<\/a><\/strong> offers multiple improvements over the default <strong><a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/editor\/\">editor<\/a><\/strong>.<\/p>\n<h1>Snapping<\/h1>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-1353\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/05\/transform-drawer-snapping.gif\" alt=\"\" width=\"802\" height=\"390\" \/><\/p>\n<p>It is possible to enable <a href=\"https:\/\/unity3d.com\/learn\/tutorials\/topics\/tips\/snapping\" target=\"_blank\" rel=\"noopener noreferrer\">snapping<\/a> for values of inspected transforms.<\/p>\n<p>To do so, you will first need to <strong>turn on snapping control visibility<\/strong> using the Toggle Snap Controls button found on the <strong><a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/toolbars\/\">header toolbar<\/a><\/strong> of the transform.<br \/>\nYou should then see Snap controls appear next to the Position, Rotation and Scale members of the transform drawer that allow you to toggle snapping mode on for each one <strong>individually<\/strong>.<\/p>\n<p>When you adjust values inside transform drawer with snapping enabled, the values are snapped to increments based on the current Snap settings.<\/p>\n<p>You can adjust snap settings by <strong>right-clicking<\/strong> the <strong>header<\/strong> of the transform drawer or the <strong>Toggle Snap Controls button<\/strong> and selecting the \u201c<strong>Edit Snap Settings&#8230;<\/strong>\u201d context menu item.<\/p>\n<h1>World Space Mode<\/h1>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-1355\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/05\/transform-drawer-world-space.gif\" alt=\"\" width=\"802\" height=\"390\" \/><\/p>\n<p>It is possible to display the state of inspected Transforms in <strong>world coordinate space<\/strong>, instead of the default local coordinate space.<\/p>\n<p>To change between coordinate space modes, click the <strong>coordinate space toggle button<\/strong> on the <strong>header toolbar<\/strong>.<\/p>\n<h1>All Prefixes Are Draggable<\/h1>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-1356\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/05\/transform-drawer-draggable-prefixes.gif\" alt=\"\" width=\"802\" height=\"390\" \/><\/p>\n<p>In addition to being able to drag the prefix labels of the float fields to adjust their values, you can also drag the prefix labels of their parents to do the same.<\/p>\n<p>When you drag the \u201c<strong>Position<\/strong>\u201d prefix label, the transform position gets adjusted along the forward-facing axis (<strong>moves forwards \/ backwards<\/strong>).<\/p>\n<p>When you drag the \u201c<strong>Rotation<\/strong>\u201d prefix label, the transform rotates around the vertical axis (<strong>turns left \/ right<\/strong>).<\/p>\n<p>When you drag the \u201c<strong>Scale<\/strong>\u201d prefix label, the transform is scaled along all three axes (<strong>grows \/ shrinks<\/strong>).<\/p>\n<h1>Infinite Axis Line<\/h1>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-1351\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/05\/transform-drawer-infinite-axis.gif\" alt=\"\" width=\"802\" height=\"390\" \/><\/p>\n<p>When you <strong>mouseover<\/strong> or <strong>drag<\/strong> the prefix of any member of the transform <strong>position<\/strong> drawer, an <strong>infinite line<\/strong> will be drawn in the Scene view, clearing visualizing where exactly you will be able to move the transform by dragging.<\/p>\n<h1>Nonuniform Multi-Target Value Adjustments<\/h1>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-1410\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/05\/non-uniform-multi-target-value-adjusting.gif\" alt=\"\" width=\"986\" height=\"420\" \/><\/p>\n<p>When you are editing multiple targets in <a href=\"https:\/\/docs.sisus.co\/power-inspector\/features\/multi-editing-modes\/\"><strong>merged multi-editing mode<\/strong><\/a>, and you adjust the value of any <strong><a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/drawer-target\/\">drawer target<\/a><\/strong> by dragging its prefix label, all values will be adjusted separately from each other.<\/p>\n<p>This is different from how the default editor works, where all targets are set to the same value when you start dragging.<\/p>\n<p>Additionally, the speed at which the values of transform members change when their prefix is being dragged has been tweaked separately for each member.<br \/>\nFor example, you you no longer need to move your cursor across the distance of the whole screen to rotate an object 180 degrees.<\/p>\n<h1>Reset Without Affecting Children<\/h1>\n<p>You can reset the position, rotation and scale of the transform, without it affecting the values of its child transforms (in world space).<\/p>\n<p>This can be done by <strong>right-clicking<\/strong> the <strong>header<\/strong> of the drawer, or the <strong>prefix label<\/strong> of the <strong>position<\/strong>, <strong>rotation<\/strong> or <strong>scale<\/strong> drawers, and selecting the context menu item &#8220;<strong>Reset Without Affecting Children<\/strong>&#8220;.<\/p>\n<p>Both &#8220;Reset&#8221; and &#8220;Reset Without Affecting Children&#8221; commands reset values in local space (relative to parent) by default, but when world space mode is active, the values are reset in world space.<\/p>\n<h1>Align With NavMesh<\/h1>\n<p>It is possible to align the position of the <a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/target-object\/\">target<\/a> transforms with the NavMesh in the current scene.<\/p>\n<p>What this does is, for each target, it finds the <strong>point<\/strong> on the NavMesh that is <strong>closest<\/strong> to the target&#8217;s position, and if one is found within a distance threshold of 10 units, it moves the target to that point.<\/p>\n<p>To align the targets of transform drawer with the NavMesh, you can <strong>right-click<\/strong> the <strong>header<\/strong> of the drawer, or the <strong>prefix label<\/strong> of the <strong>position<\/strong> drawer, and select the context menu item \u201c<strong>Align With NavMesh<\/strong>\u201d.<\/p>\n<h1>Ground<\/h1>\n<p>Another new feature is the possibility to <strong>ground<\/strong> targets.<\/p>\n<p>What this does is, for each transform target, it <strong><a href=\"https:\/\/unity3d.com\/learn\/tutorials\/topics\/physics\/raycasting\" target=\"_blank\" rel=\"noopener noreferrer\">casts a ray<\/a><\/strong> directly downwards from its position, and if the ray hits a point on a <strong>collider<\/strong> on the way down, the target is <strong>moved to that point<\/strong>.<\/p>\n<p>To ground a transform <strong>right-click<\/strong> the <strong><a href=\"https:\/\/docs.sisus.co\/power-inspector\/terminology\/drawer-header\/\">header<\/a><\/strong> of the transform drawer, or the prefix label of the position drawer, and select the menu item <strong>Ground<\/strong>.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-388\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/05\/TransformAlignWithNavMesh.png\" alt=\"\" width=\"282\" height=\"340\" srcset=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/05\/TransformAlignWithNavMesh.png 282w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/05\/TransformAlignWithNavMesh-249x300.png 249w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/05\/TransformAlignWithNavMesh-124x150.png 124w\" sizes=\"(max-width: 282px) 100vw, 282px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The drawer for the transform component offers multiple improvements over the default editor. Snapping It is possible to enable snapping for values of inspected transforms. To do so, you will first need to turn on snapping control visibility using the Toggle Snap Controls button found on the header toolbar of the transform. You should then ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/docs.sisus.co\/power-inspector\/enhanced-drawers\/transform-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\/384"}],"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=384"}],"version-history":[{"count":22,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts\/384\/revisions"}],"predecessor-version":[{"id":1826,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts\/384\/revisions\/1826"}],"wp:attachment":[{"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/media?parent=384"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/categories?post=384"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/tags?post=384"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}