From bf2c9d19da881525ec7e056629cd742226a78659 Mon Sep 17 00:00:00 2001 From: Mike Nisbet Date: Tue, 19 Mar 2024 21:17:02 +0000 Subject: [PATCH] Compliance with Age Group API requirements https://developer.oculus.com/documentation/unity/ps-age-group-apis/ --- Assets/Scripts/VrSdk.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Assets/Scripts/VrSdk.cs b/Assets/Scripts/VrSdk.cs index e927405c35..87e4cd8f5d 100644 --- a/Assets/Scripts/VrSdk.cs +++ b/Assets/Scripts/VrSdk.cs @@ -196,6 +196,9 @@ void Awake() if (Unity.XR.Oculus.Utils.GetSystemHeadsetType() != Unity.XR.Oculus.SystemHeadset.Oculus_Quest) { Oculus.Platform.Core.Initialize(appId); + Oculus.Platform.UserAgeCategory.Get().OnComplete((msg) => { + var unused = msg.Data.AgeCategory; + }); } #endif // OCULUS_SUPPORTED