Skip to content

Commit

Permalink
Compliance with Age Group API requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeskydev committed Mar 19, 2024
1 parent 2703d1e commit bf2c9d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Assets/Scripts/VrSdk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bf2c9d1

Please sign in to comment.