Oculusフォーラムでthis postの解決策が見つかりました。ここで
は、作業コードです:ユーザーは、ヘッドセットを削除するまで、あなたは しようとすると、
public class OpenWebsiteOnHeadsetRemove : MonoBehaviour
{
#region Serialized
public OVRManager m_OVRManager;
#endregion
#region Variables
private bool m_UserPresent = true;
private bool m_HasOpenedURL = false;
#endregion
#region Lifecycle
private void Update() {
#if UNITY_ANDROID
bool isUserPresent = m_OVRManager.isUserPresent;
if(m_UserPresent != isUserPresent)
{
if(isUserPresent == false && m_HasOpenedURL == false && Application.isEditor == false)
{
m_HasOpenedURL = true;
Application.OpenURL("http://www.google.co.uk");
}
}
m_UserPresent = isUserPresent;
#endif
}
#endregion
}
それはアプリの凍結の耳障りなビジュアルを避けるために アプリを開く前に待機します開きますURL。プレーヤーがヘッドセットを外して に戻すと、ゲーム内のどこに戻されますか? Glitchers Games
:
希望は、この後半のユーザー:)
礼儀を支援します