{"action":"created","issue":{"url":"https://api.github.com/repos/OSVR/OSVR-Unity/issues/26","labels_url":"https://api.github.com/repos/OSVR/OSVR-Unity/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/OSVR/OSVR-Unity/issues/26/comments","events_url":"https://api.github.com/repos/OSVR/OSVR-Unity/issues/26/events","html_url":"https://github.com/OSVR/OSVR-Unity/issues/26","id":60266673,"number":26,"title":"Update to Unity 5.0?","user":{"login":"JeroMiya","id":320332,"avatar_url":"https://avatars.githubusercontent.com/u/320332?v=3","gravatar_id":"","url":"https://api.github.com/users/JeroMiya","html_url":"https://github.com/JeroMiya","followers_url":"https://api.github.com/users/JeroMiya/followers","following_url":"https://api.github.com/users/JeroMiya/following{/other_user}","gists_url":"https://api.github.com/users/JeroMiya/gists{/gist_id}","starred_url":"https://api.github.com/users/JeroMiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeroMiya/subscriptions","organizations_url":"https://api.github.com/users/JeroMiya/orgs","repos_url":"https://api.github.com/users/JeroMiya/repos","events_url":"https://api.github.com/users/JeroMiya/events{/privacy}","received_events_url":"https://api.github.com/users/JeroMiya/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OSVR/OSVR-Unity/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"DuFF14","id":10972018,"avatar_url":"https://avatars.githubusercontent.com/u/10972018?v=3","gravatar_id":"","url":"https://api.github.com/users/DuFF14","html_url":"https://github.com/DuFF14","followers_url":"https://api.github.com/users/DuFF14/followers","following_url":"https://api.github.com/users/DuFF14/following{/other_user}","gists_url":"https://api.github.com/users/DuFF14/gists{/gist_id}","starred_url":"https://api.github.com/users/DuFF14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DuFF14/subscriptions","organizations_url":"https://api.github.com/users/DuFF14/orgs","repos_url":"https://api.github.com/users/DuFF14/repos","events_url":"https://api.github.com/users/DuFF14/events{/privacy}","received_events_url":"https://api.github.com/users/DuFF14/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-03-08T17:24:23Z","updated_at":"2015-03-30T21:04:07Z","closed_at":null,"body":"Is it too early to update our unity assets to Unity 5.0? I downloaded Unity 5.0 to get a dev environment setup to test changes and it asked to make a one-way project conversion for 5.0.\r\n\r\nAdditionally, when attempting to build devscene.unity in unity 5.0, I get the following errors:\r\n\r\n```\r\n\r\n\r\nBuilding Solution: OSVR-Unity (Debug)\r\n\r\n\r\n\r\nBuilding: Assembly-CSharp (Debug)\r\n\r\nPerforming main compilation...\r\n\r\nC:\\Windows\\Microsoft.NET\\Framework\\v3.5\\csc.exe /noconfig \"/r:C:\\Windows\\Microsoft.NET\\Framework\\v2.0.50727\\mscorlib.dll\"\r\n -nostdlib\r\n \"/out:C:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Temp\\bin\\Debug\\Assembly-CSharp.dll\"\r\n \"/r:C:\\Windows\\Microsoft.NET\\Framework\\v2.0.50727\\System.dll\"\r\n \"/r:C:\\Windows\\Microsoft.NET\\Framework\\v2.0.50727\\System.Xml.dll\"\r\n \"/r:C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\v3.5\\System.Core.dll\"\r\n \"/r:C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\v3.5\\System.Xml.Linq.dll\"\r\n \"/r:C:/Program Files/Unity/Editor/Data/Managed/UnityEngine.dll\"\r\n \"/r:C:/Program Files/Unity/Editor/Data/Managed/UnityEditor.dll\"\r\n \"/r:C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll\"\r\n \"/r:C:/Users/JeremyBell/Desktop/OSVR-Unity/OSVR-Unity/Assets/Plugins/x86/ClientKit.dll\"\r\n /nologo\r\n /warn:4\r\n /debug:full\r\n /optimize-\r\n \"/define:DEBUG;TRACE;UNITY_5_0_0;UNITY_5_0;UNITY_5;ENABLE_LICENSE_RENAME;ENABLE_NEW_BUGREPORTER;ENABLE_2D_PHYSICS;ENABLE_4_6_FEATURES;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_FRAME_DEBUGGER;ENABLE_GENERICS;ENABLE_HOME_SCREEN;ENABLE_IMAGEEFFECTS;ENABLE_LIGHT_PROBES_LEGACY;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_NEW_HIERARCHY;ENABLE_PHYSICS;ENABLE_PHYSICS_PHYSX3;ENABLE_PLUGIN_INSPECTOR;ENABLE_SHADOWS;ENABLE_SINGLE_INSTANCE_BUILD_SETTING;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_AUDIOMIXER_SUSPEND;ENABLE_NONPRO;INCLUDE_DYNAMIC_GI;INCLUDE_GI;INCLUDE_IL2CPP;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_TEXTUREID_MAP;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_MONO;ENABLE_PROFILER;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN\"\r\n \r\n /t:library\r\n \"C:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\Sample\\Demo\\Scripts\\Managers\\ColorManager.cs\"\r\n \"C:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\Sample\\Demo\\Scripts\\Objects\\ColorChanger.cs\"\r\n \"C:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\Sample\\Scripts\\HandleButtonPress.cs\"\r\n \"C:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\Sample\\Scripts\\SampleAnalog.cs\"\r\n \"C:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\Sample\\Scripts\\SampleButtonScript.cs\"\r\n \"C:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\src\\ClientKit.cs\"\r\n \"C:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\src\\DLLSearchPathFixer.cs\"\r\n \"C:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\src\\DeviceDescriptor.cs\"\r\n \"C:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\src\\DisplayInterface.cs\"\r\n \"C:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\src\\GetParent.cs\"\r\n \"C:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\src\\InterfaceBase.cs\"\r\n \"C:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\src\\InterfaceCallbacks.cs\"\r\n \"C:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\src\\InterfaceGameObject.cs\"\r\n \"C:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\src\\Math.cs\"\r\n \"C:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\src\\OrientationInterface.cs\"\r\n \"C:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\src\\PoseInterface.cs\"\r\n \"C:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\src\\PositionInterface.cs\"\r\n \"C:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\src\\SimpleJSON.cs\"\r\n \"C:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\src\\VREye.cs\"\r\n \"C:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\src\\VRHead.cs\"\r\n \"/nowarn:0169\"\r\n /fullpaths\r\n /utf8output\r\n \r\n\r\nc:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\Sample\\Demo\\Scripts\\Objects\\ColorChanger.cs(25,24): error CS1061: 'UnityEngine.Component' does not contain a definition for 'materials' and no extension method 'materials' accepting a first argument of type 'UnityEngine.Component' could be found (are you missing a using directive or an assembly reference?)\r\n\r\nc:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\src\\VREye.cs(49,24): error CS1061: 'UnityEngine.Component' does not contain a definition for 'CopyFrom' and no extension method 'CopyFrom' accepting a first argument of type 'UnityEngine.Component' could be found (are you missing a using directive or an assembly reference?)\r\n\r\nc:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\src\\VREye.cs(62,21): error CS0619: 'UnityEngine.Component.camera' is obsolete: 'Property camera has been deprecated. Use GetComponent<Camera>() instead. (UnityUpgradable)'\r\n\r\nc:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\src\\VREye.cs(74,32): error CS1061: 'UnityEngine.Component' does not contain a definition for 'rect' and no extension method 'rect' accepting a first argument of type 'UnityEngine.Component' could be found (are you missing a using directive or an assembly reference?)\r\n\r\nc:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\src\\VREye.cs(77,32): error CS1061: 'UnityEngine.Component' does not contain a definition for 'rect' and no extension method 'rect' accepting a first argument of type 'UnityEngine.Component' could be found (are you missing a using directive or an assembly reference?)\r\n\r\nc:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\src\\VRHead.cs(73,36): error CS1061: 'UnityEngine.Component' does not contain a definition for 'enabled' and no extension method 'enabled' accepting a first argument of type 'UnityEngine.Component' could be found (are you missing a using directive or an assembly reference?)\r\n\r\nc:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\src\\VRHead.cs(74,45): error CS1061: 'UnityEngine.Component' does not contain a definition for 'enabled' and no extension method 'enabled' accepting a first argument of type 'UnityEngine.Component' could be found (are you missing a using directive or an assembly reference?)\r\n\r\nc:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\src\\VRHead.cs(75,46): error CS1061: 'UnityEngine.Component' does not contain a definition for 'enabled' and no extension method 'enabled' accepting a first argument of type 'UnityEngine.Component' could be found (are you missing a using directive or an assembly reference?)\r\n\r\nc:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\src\\VRHead.cs(79,36): error CS1061: 'UnityEngine.Component' does not contain a definition for 'enabled' and no extension method 'enabled' accepting a first argument of type 'UnityEngine.Component' could be found (are you missing a using directive or an assembly reference?)\r\n\r\nc:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\src\\VRHead.cs(80,45): error CS1061: 'UnityEngine.Component' does not contain a definition for 'enabled' and no extension method 'enabled' accepting a first argument of type 'UnityEngine.Component' could be found (are you missing a using directive or an assembly reference?)\r\n\r\nc:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\src\\VRHead.cs(81,46): error CS1061: 'UnityEngine.Component' does not contain a definition for 'enabled' and no extension method 'enabled' accepting a first argument of type 'UnityEngine.Component' could be found (are you missing a using directive or an assembly reference?)\r\n\r\nc:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\src\\VRHead.cs(105,21): error CS1502: The best overloaded method match for 'OSVR.Unity.VREye.MatchCamera(UnityEngine.Camera)' has some invalid arguments\r\n\r\nc:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\src\\VRHead.cs(105,44): error CS1503: Argument '1': cannot convert from 'UnityEngine.Component' to 'UnityEngine.Camera'\r\n\r\nc:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\src\\VRHead.cs(105,44): error CS0619: 'UnityEngine.Component.camera' is obsolete: 'Property camera has been deprecated. Use GetComponent<Camera>() instead. (UnityUpgradable)'\r\n\r\nc:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\OSVRUnity\\src\\VRHead.cs(145,24): error CS1061: 'UnityEngine.Component' does not contain a definition for 'fieldOfView' and no extension method 'fieldOfView' accepting a first argument of type 'UnityEngine.Component' could be found (are you missing a using directive or an assembly reference?)\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nBuild complete -- 15 errors, 0 warnings\r\n\r\n\r\n\r\nBuilding: Assembly-CSharp-Editor (Debug)\r\n\r\nPerforming main compilation...\r\n\r\nC:\\Windows\\Microsoft.NET\\Framework\\v3.5\\csc.exe /noconfig \"/r:C:\\Windows\\Microsoft.NET\\Framework\\v2.0.50727\\mscorlib.dll\"\r\n -nostdlib\r\n \"/out:C:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Temp\\bin\\Debug\\Assembly-CSharp-Editor.dll\"\r\n \"/r:C:\\Windows\\Microsoft.NET\\Framework\\v2.0.50727\\System.dll\"\r\n \"/r:C:\\Windows\\Microsoft.NET\\Framework\\v2.0.50727\\System.Xml.dll\"\r\n \"/r:C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\v3.5\\System.Core.dll\"\r\n \"/r:C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\v3.5\\System.Xml.Linq.dll\"\r\n \"/r:C:/Program Files/Unity/Editor/Data/Managed/UnityEngine.dll\"\r\n \"/r:C:/Program Files/Unity/Editor/Data/Managed/UnityEditor.dll\"\r\n \"/r:C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll\"\r\n \"/r:C:/Users/JeremyBell/Desktop/OSVR-Unity/OSVR-Unity/Assets/Plugins/x86/ClientKit.dll\"\r\n \"/r:C:/Program Files/Unity/Editor/Data/Managed/UnityEditor.Graphs.dll\"\r\n \"/r:C:/Program Files/Unity/Editor/Data/PlaybackEngines/androidplayer/UnityEditor.Android.Extensions.dll\"\r\n \"/r:C:/Program Files/Unity/Editor/Data/PlaybackEngines/iossupport/UnityEditor.iOS.Extensions.dll\"\r\n \"/r:C:/Program Files/Unity/Editor/Data/PlaybackEngines/wp8support/UnityEditor.WP8.Extensions.dll\"\r\n \"/r:C:/Program Files/Unity/Editor/Data/PlaybackEngines/metrosupport/UnityEditor.Metro.Extensions.dll\"\r\n \"/r:C:/Program Files/Unity/Editor/Data/PlaybackEngines/blackberryplayer/UnityEditor.BB10.Extensions.dll\"\r\n \"/r:C:/Program Files/Unity/Editor/Data/PlaybackEngines/webglsupport/UnityEditor.WebGL.Extensions.dll\"\r\n \"/r:C:/Program Files/Unity/Editor/Data/PlaybackEngines/linuxstandalonesupport/UnityEditor.LinuxStandalone.Extensions.dll\"\r\n \"/r:C:/Program Files/Unity/Editor/Data/PlaybackEngines/windowsstandalonesupport/UnityEditor.WindowsStandalone.Extensions.dll\"\r\n \"/r:C:/Program Files/Unity/Editor/Data/PlaybackEngines/macstandalonesupport/UnityEditor.OSXStandalone.Extensions.dll\"\r\n /nologo\r\n /warn:4\r\n /debug:full\r\n /optimize-\r\n \"/define:DEBUG;TRACE;UNITY_5_0_0;UNITY_5_0;UNITY_5;ENABLE_LICENSE_RENAME;ENABLE_NEW_BUGREPORTER;ENABLE_2D_PHYSICS;ENABLE_4_6_FEATURES;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_FRAME_DEBUGGER;ENABLE_GENERICS;ENABLE_HOME_SCREEN;ENABLE_IMAGEEFFECTS;ENABLE_LIGHT_PROBES_LEGACY;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_NEW_HIERARCHY;ENABLE_PHYSICS;ENABLE_PHYSICS_PHYSX3;ENABLE_PLUGIN_INSPECTOR;ENABLE_SHADOWS;ENABLE_SINGLE_INSTANCE_BUILD_SETTING;ENABLE_SPRITES;ENABLE_TERRAIN;ENABLE_UNITYEVENTS;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_AUDIOMIXER_SUSPEND;ENABLE_NONPRO;INCLUDE_DYNAMIC_GI;INCLUDE_GI;INCLUDE_IL2CPP;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_TEXTUREID_MAP;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_MONO;ENABLE_PROFILER;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN\"\r\n \r\n /t:library\r\n \"C:\\Users\\JeremyBell\\Desktop\\OSVR-Unity\\OSVR-Unity\\Assets\\Editor\\OSVRUnityBuild.cs\"\r\n \"/nowarn:0169\"\r\n /fullpaths\r\n /utf8output\r\n \r\n\r\nBuild complete -- 0 errors, 0 warnings\r\n\r\n\r\n\r\n---------------------- Done ----------------------\r\n\r\n\r\nBuild: 15 errors, 0 warnings\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/OSVR/OSVR-Unity/issues/comments/87831007","html_url":"https://github.com/OSVR/OSVR-Unity/issues/26#issuecomment-87831007","issue_url":"https://api.github.com/repos/OSVR/OSVR-Unity/issues/26","id":87831007,"user":{"login":"DuFF14","id":10972018,"avatar_url":"https://avatars.githubusercontent.com/u/10972018?v=3","gravatar_id":"","url":"https://api.github.com/users/DuFF14","html_url":"https://github.com/DuFF14","followers_url":"https://api.github.com/users/DuFF14/followers","following_url":"https://api.github.com/users/DuFF14/following{/other_user}","gists_url":"https://api.github.com/users/DuFF14/gists{/gist_id}","starred_url":"https://api.github.com/users/DuFF14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DuFF14/subscriptions","organizations_url":"https://api.github.com/users/DuFF14/orgs","repos_url":"https://api.github.com/users/DuFF14/repos","events_url":"https://api.github.com/users/DuFF14/events{/privacy}","received_events_url":"https://api.github.com/users/DuFF14/received_events","type":"User","site_admin":false},"created_at":"2015-03-30T21:04:07Z","updated_at":"2015-03-30T21:04:07Z","body":"The only issue I see currently is if new code is written in Unity 4 that doesn't use GetComponent to access components, and nobody notices. I don't think this error would be caught in an automated package build, but the Unity 5 editor is supposed to catch and fix this issue automatically at any time, not just during package import. If I change \"GetComponent<Camera>.\" to \"camera.\", Unity 5 offers to fix it as soon as the file is saved (this is not necessarily the best semantic fix, but it fixes the syntax). If I intentionally leave this error in, then try to export a package from Unity 5, it allows me to do that.\r\n\r\nI'm not sure how different the automated package build process will be for Unity 5 (if at all), but it definitely wouldn't hurt to start setting things up for Unity 5. There is a good chance that differences between Unity 4 and 5 become greater as Unity adds VR specific features and optimizations in future releases (for example, if the camera component changes). I'd expect that most VR developers and OSVR contributors will be using Unity 5 very soon if they aren't already."}}