Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question How to remove and re-add ActionSets in OpenXR

Discussion in 'AR' started by AliCanKeskin, Sep 6, 2022.

  1. AliCanKeskin

    AliCanKeskin

    Joined:
    Jun 7, 2022
    Posts:
    25
    Hello, I have a ".dll" file that attaches action sets to the OpenXR session and does some stuff with each action I defined. But some of those actions are already defined in Unity's side. So, I am trying to disable and remove those actions for an amount of time and restore them after in the Unity's side once I am done. Is there a proper way to do this ? Or maybe to get those actions from Unity's side and pass them to the ".dll" ?
     
    Last edited: Sep 6, 2022
  2. thep3000

    thep3000

    Unity Technologies

    Joined:
    Aug 9, 2013
    Posts:
    400
    It seems like you're going against the grain a bit on the preferred way of defining / attaching actions in unity via OpenXRInteractionFeature. Is there some way of utilizing that mechanism (plus maybe hooking functions via xrGetInstanceProcAddr) to get to where you're trying to go?

    If you really need to modify the attach actions process - Have a look at OpenXRInput.cs AttachActionSets() in the package. Maybe you can hack it up locally to get it working and suggest some extension points for your use case that we can ship?
     
    andyb-unity likes this.