{"id":5165,"date":"2020-02-13T20:09:39","date_gmt":"2020-02-13T12:09:39","guid":{"rendered":"https:\/\/unitycoder.com\/blog\/?p=5165"},"modified":"2020-02-13T20:12:44","modified_gmt":"2020-02-13T12:12:44","slug":"reference-image-viewer-editor-window","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2020\/02\/13\/reference-image-viewer-editor-window\/","title":{"rendered":"Reference Image Viewer Editor Window"},"content":{"rendered":"\n<p>If you are working on a single monitor, and\/or need to have some reference images in view.. Here&#8217;s a small editor plugin to show texture on a window.<\/p>\n\n\n\n<p><strong>Source:<\/strong> <br><a rel=\"noreferrer noopener\" aria-label=\"https:\/\/github.com\/UnityCommunity\/UnityLibrary\/blob\/master\/Assets\/Scripts\/Editor\/Tools\/ReferenceImageViewer.cs (opens in a new tab)\" href=\"https:\/\/github.com\/UnityCommunity\/UnityLibrary\/blob\/master\/Assets\/Scripts\/Editor\/Tools\/ReferenceImageViewer.cs\" target=\"_blank\">https:\/\/github.com\/UnityCommunity\/UnityLibrary\/blob\/master\/Assets\/Scripts\/Editor\/Tools\/ReferenceImageViewer.cs<\/a><\/p>\n\n\n\n<p><strong>Usage:<\/strong><br>&#8211; Copy file into your project, into some Editor\/ folder<br>&#8211; You can then use from Window\/Tools\/Reference Image Viewer<br>&#8211; Assign your texture in texture field (top of the window)<br>&#8211; Optional: Enable KeepAspect to force keeping aspect ratio for main image<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"680\" height=\"606\" data-attachment-id=\"5166\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2020\/02\/13\/reference-image-viewer-editor-window\/image-3-4\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2020\/02\/image-3.png?fit=680%2C606&amp;ssl=1\" data-orig-size=\"680,606\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-3\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2020\/02\/image-3.png?fit=680%2C606&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2020\/02\/image-3.png?resize=680%2C606&#038;ssl=1\" alt=\"\" class=\"wp-image-5166\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2020\/02\/image-3.png?w=680&amp;ssl=1 680w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2020\/02\/image-3.png?resize=300%2C267&amp;ssl=1 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>If you are working on a single monitor, and\/or need to have some reference images in view.. Here&#8217;s a small editor plugin to show texture on a window. Source: https:\/\/github.com\/UnityCommunity\/UnityLibrary\/blob\/master\/Assets\/Scripts\/Editor\/Tools\/ReferenceImageViewer.cs Usage:&#8211; Copy file into your project, into some Editor\/ folder&#8211; You can then use from [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5166,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[358,1149,142,1150],"class_list":["post-5165","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-editor","tag-reference","tag-texture","tag-window"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2020\/02\/image-3.png?fit=680%2C606&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-1lj","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/5165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/comments?post=5165"}],"version-history":[{"count":2,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/5165\/revisions"}],"predecessor-version":[{"id":5168,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/5165\/revisions\/5168"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/5166"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=5165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=5165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=5165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}