{"id":5128,"date":"2019-12-09T04:24:08","date_gmt":"2019-12-08T20:24:08","guid":{"rendered":"https:\/\/unitycoder.com\/blog\/?p=5128"},"modified":"2019-12-09T04:24:08","modified_gmt":"2019-12-08T20:24:08","slug":"using-raylib-dll-in-unity","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2019\/12\/09\/using-raylib-dll-in-unity\/","title":{"rendered":"Using raylib.dll in Unity"},"content":{"rendered":"\n<p>raylib is <a rel=\"noreferrer noopener\" aria-label=\"https:\/\/github.com\/raysan5\/raylib (opens in a new tab)\" href=\"https:\/\/github.com\/raysan5\/raylib\" target=\"_blank\">https:\/\/github.com\/raysan5\/raylib<\/a><br>There are c# bindings available at <a rel=\"noreferrer noopener\" aria-label=\"https:\/\/github.com\/ChrisDill\/Raylib-cs (opens in a new tab)\" href=\"https:\/\/github.com\/ChrisDill\/Raylib-cs\" target=\"_blank\">https:\/\/github.com\/ChrisDill\/Raylib-cs<\/a><br><br><strong>Steps:<\/strong><br>&#8211; Download <a rel=\"noreferrer noopener\" aria-label=\"raylib.dll (opens in a new tab)\" href=\"https:\/\/github.com\/raysan5\/raylib\/releases\" target=\"_blank\">raylib.dll<\/a> from releases (i took raylib-2.5.0-Win64-msvc15.zip)<br>&#8211; Unzip and copy \\raylib-2.5.0-Win64-msvc15\\bin\\raylib.dll into your Unity project Plugins\/ folder<br>&#8211; Download <a rel=\"noreferrer noopener\" aria-label=\"c# bindings repository (opens in a new tab)\" href=\"https:\/\/github.com\/ChrisDill\/Raylib-cs\" target=\"_blank\">c# bindings repository<\/a> (click &#8220;clone or download&#8221; .. as zip)<br>&#8211; Unzip and copy \\Raylib-cs-master\\Bindings\\ folder into your Unity project (under Assets\/)<br>&#8211; Test with example script: <a rel=\"noreferrer noopener\" aria-label=\"https:\/\/gist.github.com\/unitycoder\/dfd1c355ef6800604eecd99c5ebee434 (opens in a new tab)\" href=\"https:\/\/gist.github.com\/unitycoder\/dfd1c355ef6800604eecd99c5ebee434\" target=\"_blank\">https:\/\/gist.github.com\/unitycoder\/dfd1c355ef6800604eecd99c5ebee434<\/a><br>&#8211; Then check <a rel=\"noreferrer noopener\" aria-label=\"raylib wiki (opens in a new tab)\" href=\"https:\/\/github.com\/raysan5\/raylib\/wiki\" target=\"_blank\">raylib wiki<\/a> + <a rel=\"noreferrer noopener\" aria-label=\"examples (opens in a new tab)\" href=\"https:\/\/www.raylib.com\/examples.html\" target=\"_blank\">examples<\/a> to see if there is something useful for Unity side!<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"680\" height=\"569\" data-attachment-id=\"5129\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2019\/12\/09\/using-raylib-dll-in-unity\/image-18\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2019\/12\/image.png?fit=680%2C569&amp;ssl=1\" data-orig-size=\"680,569\" 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\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2019\/12\/image.png?fit=680%2C569&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2019\/12\/image.png?resize=680%2C569&#038;ssl=1\" alt=\"\" class=\"wp-image-5129\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2019\/12\/image.png?w=680&amp;ssl=1 680w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2019\/12\/image.png?resize=300%2C251&amp;ssl=1 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><figcaption>raylib example running from unity<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>raylib is https:\/\/github.com\/raysan5\/raylibThere are c# bindings available at https:\/\/github.com\/ChrisDill\/Raylib-cs Steps:&#8211; Download raylib.dll from releases (i took raylib-2.5.0-Win64-msvc15.zip)&#8211; Unzip and copy \\raylib-2.5.0-Win64-msvc15\\bin\\raylib.dll into your Unity project Plugins\/ folder&#8211; Download c# bindings repository (click &#8220;clone or download&#8221; .. as zip)&#8211; Unzip and copy \\Raylib-cs-master\\Bindings\\ folder into your [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5129,"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":[804,420,3],"tags":[1137,840,1138,1136],"class_list":["post-5128","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripts","category-tutorials","category-unity3d","tag-bindings","tag-dll","tag-library","tag-raylib"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2019\/12\/image.png?fit=680%2C569&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-1kI","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/5128","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=5128"}],"version-history":[{"count":2,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/5128\/revisions"}],"predecessor-version":[{"id":5131,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/5128\/revisions\/5131"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/5129"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=5128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=5128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=5128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}