{"id":2204,"date":"2024-06-16T14:42:33","date_gmt":"2024-06-16T09:12:33","guid":{"rendered":"http:\/\/ramkulkarni.com\/blog\/?p=2204"},"modified":"2024-06-16T14:42:33","modified_gmt":"2024-06-16T09:12:33","slug":"import-assets-from-blender-to-unity","status":"publish","type":"post","link":"http:\/\/ramkulkarni.com\/blog\/import-assets-from-blender-to-unity\/","title":{"rendered":"Import Assets from Blender to Unity"},"content":{"rendered":"\n<p>In the <a href=\"http:\/\/ramkulkarni.com\/blog\/setting-up-unity-firstpersoncontroller-in-terrain\/\">last <\/a><a href=\"http:\/\/ramkulkarni.com\/blog\/setting-up-unity-firstpersoncontroller-in-terrain\/\" target=\"_blank\" rel=\"noreferrer noopener\">blog<\/a><a href=\"http:\/\/ramkulkarni.com\/blog\/setting-up-unity-firstpersoncontroller-in-terrain\/\"> post<\/a> I created a terrain with trees and hills in Unity and added a First Person Controller (FPS) to navigate it. In this blog post I will add an asset from Blender into Unity with all the textures preserved. The default export options in Blender do not package textures. In the export (to FBX) dialog, you need to set Path Mode to &#8216;Copy&#8217; and turn on the button (next to the select box) to embed textures. See the video below.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<span class=\"embed-youtube\" style=\"text-align:center; display: block;\"><iframe loading=\"lazy\" class=\"youtube-player\" width=\"525\" height=\"296\" src=\"https:\/\/www.youtube.com\/embed\/1Hc9Uf9qUSk?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en-US&#038;autohide=2&#038;wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox\"><\/iframe><\/span>\n<\/div><\/figure>\n\n\n\n<p>In the above video, I add a house (with textures for roof, wall and floor) created in Blender into the Unity scene created in the blog post mentioned earlier. The player can navigate inside the house. To prevent the player passing though the walls, I add a mesh controller.<\/p>\n\n\n\n<p>-Ram Kulkarni<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the last blog post I created a terrain with trees and hills in Unity and added a First Person Controller (FPS) to navigate it. In this blog post I will add an asset from Blender into Unity with all the textures preserved. The default export options in Blender do not package textures. In the &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/ramkulkarni.com\/blog\/import-assets-from-blender-to-unity\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Import Assets from Blender to Unity&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_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":false,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[166],"tags":[167,155],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2g9O8-zy","jetpack-related-posts":[],"_links":{"self":[{"href":"http:\/\/ramkulkarni.com\/blog\/wp-json\/wp\/v2\/posts\/2204"}],"collection":[{"href":"http:\/\/ramkulkarni.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ramkulkarni.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ramkulkarni.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/ramkulkarni.com\/blog\/wp-json\/wp\/v2\/comments?post=2204"}],"version-history":[{"count":2,"href":"http:\/\/ramkulkarni.com\/blog\/wp-json\/wp\/v2\/posts\/2204\/revisions"}],"predecessor-version":[{"id":2206,"href":"http:\/\/ramkulkarni.com\/blog\/wp-json\/wp\/v2\/posts\/2204\/revisions\/2206"}],"wp:attachment":[{"href":"http:\/\/ramkulkarni.com\/blog\/wp-json\/wp\/v2\/media?parent=2204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ramkulkarni.com\/blog\/wp-json\/wp\/v2\/categories?post=2204"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ramkulkarni.com\/blog\/wp-json\/wp\/v2\/tags?post=2204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}