Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question How to access the openxr event in the script

Discussion in 'VR' started by yvettemuki01, Oct 3, 2022.

  1. yvettemuki01

    yvettemuki01

    Joined:
    Sep 13, 2021
    Posts:
    2
    I am currently encountering the function which wants to disable the automatically resetting the origin after taking off the headset for a while and putting on it later. So I found from another post told that I may change the XrEventDataReferenceSpaceChangePending to get to my goal. However, I don't know how to access the XrEvent through the unity script. Does Unity provide the API for this function? Thanks if anyone could help!

    Reference about OpenXR: https://registry.khronos.org/OpenXR/specs/1.0/man/html/XrEventDataReferenceSpaceChangePending.html