{"id":4080,"date":"2016-10-30T23:57:44","date_gmt":"2016-10-30T23:57:44","guid":{"rendered":"http:\/\/phoenixgamedevelopment.com\/blog\/?p=4080"},"modified":"2016-10-30T23:58:32","modified_gmt":"2016-10-30T23:58:32","slug":"p-172-unity-space-environment-part-32-web-browser","status":"publish","type":"post","link":"https:\/\/phoenixgamedevelopment.com\/blog\/p-172-unity-space-environment-part-32-web-browser\/","title":{"rendered":"P-172: Unity: Space Environment: Part 32: Web Browser"},"content":{"rendered":"<p>I have created a simple world space gui in unity, which I am using to control the hanger doors in the environment.<\/p>\n<p>This was actually difficult to get working properly, since the cursor that I was using for the webkit integration seems to be conflicting with the cursor that unity was using for detecting clicks on the gui. I implemented a temporary workaround for this, which should allow me to evaluate unity&#8217;s worldspace gui system.<\/p>\n<p>Worldspace just means that the gui&#8217;s are 2d objects in the 3d world, as opposed to appearing on the screen in front of everything else, like a conventional gui. They work fairly well, although I had to line them up manually with the computer screen object in the world, which is not ideal.<\/p>\n<p>Generally, I think a html based gui would be better, and certainly far more extendable, than this type of gui. The problem would be easily creating the HTML gui&#8217;s.<\/p>\n<p>I will spend another day, maybe two, on the GUI system, and see if I can settle on a proper workflow before I move on to the next part of the project. It is important that I get this workflow sorted out now, since I will be building on this in future, as I create the more complex gui&#8217;s that I will need for other features.<\/p>\n<figure id=\"attachment_4082\" aria-describedby=\"caption-attachment-4082\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-30_10_2016-01_24_31-AM-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4082\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-30_10_2016-01_24_31-AM-1-300x163.jpg\" alt=\"Unity 30\/10\/2016 , 01:24:31 AM Unity Personal (64bit) - P0Lab9.unity - New Unity Project - PC, Mac &amp; Linux Standalone* \" width=\"300\" height=\"163\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-30_10_2016-01_24_31-AM-1-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-30_10_2016-01_24_31-AM-1-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-30_10_2016-01_24_31-AM-1-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-30_10_2016-01_24_31-AM-1.jpg 1906w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4082\" class=\"wp-caption-text\">Unity<br \/>30\/10\/2016 , 01:24:31 AM<br \/>Unity Personal (64bit) &#8211; P0Lab9.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone*<\/figcaption><\/figure>\n<figure id=\"attachment_4081\" aria-describedby=\"caption-attachment-4081\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-30_10_2016-11_55_52-PM-002.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4081\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-30_10_2016-11_55_52-PM-002-300x163.jpg\" alt=\"Unity 30\/10\/2016 , 11:55:52 PM Unity Personal (64bit) - P0Lab9.unity - New Unity Project - PC, Mac &amp; Linux Standalone \" width=\"300\" height=\"163\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-30_10_2016-11_55_52-PM-002-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-30_10_2016-11_55_52-PM-002-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-30_10_2016-11_55_52-PM-002-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-30_10_2016-11_55_52-PM-002.jpg 1906w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4081\" class=\"wp-caption-text\">Unity<br \/>30\/10\/2016 , 11:55:52 PM<br \/>Unity Personal (64bit) &#8211; P0Lab9.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone<\/figcaption><\/figure>\n<figure id=\"attachment_4069\" aria-describedby=\"caption-attachment-4069\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-30_10_2016-01_24_31-AM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4069\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-30_10_2016-01_24_31-AM-300x163.jpg\" alt=\"Unity 30\/10\/2016 , 01:24:31 AM Unity Personal (64bit) - P0Lab9.unity - New Unity Project - PC, Mac &amp; Linux Standalone* \" width=\"300\" height=\"163\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-30_10_2016-01_24_31-AM-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-30_10_2016-01_24_31-AM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-30_10_2016-01_24_31-AM-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-30_10_2016-01_24_31-AM.jpg 1906w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4069\" class=\"wp-caption-text\">Unity<br \/>30\/10\/2016 , 01:24:31 AM<br \/>Unity Personal (64bit) &#8211; P0Lab9.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone*<\/figcaption><\/figure>\n<figure id=\"attachment_4069\" aria-describedby=\"caption-attachment-4069\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-30_10_2016-01_24_31-AM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4069\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-30_10_2016-01_24_31-AM-300x163.jpg\" alt=\"Unity 30\/10\/2016 , 01:24:31 AM Unity Personal (64bit) - P0Lab9.unity - New Unity Project - PC, Mac &amp; Linux Standalone* \" width=\"300\" height=\"163\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-30_10_2016-01_24_31-AM-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-30_10_2016-01_24_31-AM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-30_10_2016-01_24_31-AM-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-30_10_2016-01_24_31-AM.jpg 1906w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4069\" class=\"wp-caption-text\">Unity<br \/>30\/10\/2016 , 01:24:31 AM<br \/>Unity Personal (64bit) &#8211; P0Lab9.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone*<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I have created a simple world space gui in unity, which I am using to control the hanger doors in the environment. This was actually difficult to get working properly, since the cursor that I was using for the webkit integration seems to be conflicting with the cursor that unity was using for detecting clicks [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,17,10,11],"tags":[],"class_list":["post-4080","post","type-post","status-publish","format-standard","hentry","category-astral-realms","category-p-0","category-software-and-games","category-spiritus-astrum","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"aioseo_notices":[],"builder_content":"","_links":{"self":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/4080"}],"collection":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/comments?post=4080"}],"version-history":[{"count":2,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/4080\/revisions"}],"predecessor-version":[{"id":4084,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/4080\/revisions\/4084"}],"wp:attachment":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/media?parent=4080"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/categories?post=4080"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/tags?post=4080"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}