Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Virtual Reality

hector alvarado
hector alvarado
15,796 Points

Obsolete stuff the library VR changed for XR

When I run unity it tell's me that all the libraries are obsolete, I think it solves by changing VR to XR but I'm not sure if it works and why... hehe

1 Answer

Quinton Gordon
Quinton Gordon
10,985 Points

Unity depreciated the VR namespace and replaced it with the XR namespace. This was done in support of having a unified namespace for VR, AR and mixed reality as opposed to having multiple namespaces for technologies that have a lot of intersect. Currently the XR namespace focuses on VR because

  1. VR is the primary focus of all the HMDs on the market including Microsoft's Mixed Reality offerings.
  2. All the current AR platforms are either proprietary to a platform (ARcore = Android, ARkit = iOS) or require a paid license for commercial use (Vuforia) and thus exist currently as plug-ins.
  3. Outside of Hololens (which Microsoft has said currently has no commercial release planned) no other HMD even supports AR.

Unity Manual: XR