microsoft/MRDesignLabs_Unity_Tools

InteractionManager.SourcePressed is obsolete while InteractionManager.InteractionSourcePressed doesn't work as well

tazdriver opened this issue · 0 comments

What does this effect?
MRDesignLabs_Unity_Tools(master)/HUX

Unity editor version:
Unity 2018.1.6f1

Describe the bug
While using HUX toolkit in Unity project, I have faced an error in InteractionManager.cs:

Assets/Extern/MRDesignLab/HUX/Scripts/Interaction/InteractionManager.cs(131,57): error CS0619: `UnityEngine.XR.WSA.Input.InteractionManager.SourcePressed' is obsolete: `SourcePressed is deprecated, and will be removed in a future release. Use InteractionSourcePressed instead. (UnityUpgradable) -> InteractionSourcePressedLegacy'

As I change from 'SourcePressed' to 'InteractionSourcePressed' it gives me:

Assets/Extern/MRDesignLab/HUX/Scripts/Interaction/InteractionManager.cs(131,57): error CS0123: A method or delegate HUX.Interaction.InteractionManager.InteractionManager_SourcePressedCallback(UnityEngine.XR.WSA.Input.InteractionSourceState)' parameters do not match delegate `System.Action<UnityEngine.XR.WSA.Input.InteractionSourcePressedEventArgs>(UnityEngine.XR.WSA.Input.InteractionSourcePressedEventArgs)' parameters

Also, even it says (UnityUpgradable) -> InteractionSourceReleasedLegacy, API Updater doen't provide any possible solution/fix.