I'm trying to instantiate a VR player prefab depending on what system I am using (Vive or Oculus) . Is there a way where Unity will tell me what platform I am using so I can instantiate a certain player prefab depending what VR platform I am using and also so I don't have multiple player prefabs in the scene for different platforms.
Answer by BodhiPurplePill
5 days ago
Type of VR device that is currently loaded.
As far as i know there is no enum for this, all VR names and devices are in strings
What are those strings?
You can get the list of supported device names here
Sweet thank you
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
5 People are following this question.
Does Unity 2.6 Pro support Windows 7 for standalone?
Unity bug when switch the platform android to ios
Sphere Texture stretching
Keep the application active when taking off the GEAR VR Headset
Left eye not rendering when setting Direct Render flag to false - iOS / Cardboard SDK