MixedRealityToolkit-Unity
MixedRealityToolkit-Unity copied to clipboard
Android Platform: Cannot run / compile example projects. 'ObjectManipulator' does not contain a definition for 'OnManipulationEnded'
Overview
After setting up MRTK in a new Unity Project for Oculus Quest 2 (Android) using OVR Plugin, I am getting compile errors about missing definitions related to ObjectManipulator.
After opening any of the Sample Scenes I receive the following errors related to ObjectManipulator.
Assets\Samples\Mixed Reality Toolkit Examples\2.7.2\Demos - UX\ManipulationHandler\Scripts\ChangeManipulation.cs(52,43): error CS1061: 'ObjectManipulator' does not contain a definition for 'ForceEndManipulation' and no accessible extension method 'ForceEndManipulation' accepting a first argument of type 'ObjectManipulator' could be found (are you missing a using directive or an assembly reference?)
Assets\Samples\Mixed Reality Toolkit Examples\2.7.2\Demos - UX\BoundsControl\Scripts\BoundsControlRuntimeExample.cs(150,20): error CS1061: 'ObjectManipulator' does not contain a definition for 'OnManipulationStarted' and no accessible extension method 'OnManipulationStarted' accepting a first argument of type 'ObjectManipulator' could be found (are you missing a using directive or an assembly reference?)
Assets\Samples\Mixed Reality Toolkit Examples\2.7.2\Demos - UX\BoundsControl\Scripts\BoundsControlRuntimeExample.cs(151,20): error CS1061: 'ObjectManipulator' does not contain a definition for 'OnManipulationEnded' and no accessible extension method 'OnManipulationEnded' accepting a first argument of type 'ObjectManipulator' could be found (are you missing a using directive or an assembly reference?)
Assets\Samples\Mixed Reality Toolkit Examples\2.7.2\Demos - UX\BoundingBox\Scripts\BoundingBoxExampleTest.cs(145,20): error CS1061: 'ObjectManipulator' does not contain a definition for 'OnManipulationStarted' and no accessible extension method 'OnManipulationStarted' accepting a first argument of type 'ObjectManipulator' could be found (are you missing a using directive or an assembly reference?)
Assets\Samples\Mixed Reality Toolkit Examples\2.7.2\Demos - UX\BoundingBox\Scripts\BoundingBoxExampleTest.cs(146,20): error CS1061: 'ObjectManipulator' does not contain a definition for 'OnManipulationEnded' and no accessible extension method 'OnManipulationEnded' accepting a first argument of type 'ObjectManipulator' could be found (are you missing a using directive or an assembly reference?)
Also alternatively, pulling the unity packages directly from the git release does not give this error. (There are other build issues with this method, but it does not give this issue).
Expected behavior
Opening samples scenes give no compile error and run.
Actual behavior
Console gives errors about possible missing directives or assembly references related to ObjectManipulator.
Steps to reproduce
- Install Unity 2021.1.10.
- Install Mixed Reality FeatureTool 1.0.2111.0-Preview
- Download / Install the following MRTK Packages:
- MRTK Examples 2.7.2
- MRTK Extensions 2.7.2
- MRTK Foundation 2.7.2
- MRTK Standard Assets 2.7.2
- MRTK Test Utilities 2.7.2
- MRTK Tools 2.7.2
- Install Oculus XR Plugin
- Install Oculus Integration
Sample Project: https://github.com/polygonfuture/MRTK_Test
Unity editor version
2021.1.10f
Mixed Reality Toolkit release version
2.7.2 (downloaded from MRTK Feature Tool)
Hey @polygonfuture, can you confirm that you followed these instructions to download the sample scenes? https://docs.microsoft.com/en-us/windows/mixed-reality/mrtk-unity/running-example-scenes?view=mrtkunity-2021-05#using-mixed-reality-feature-tool-and-unity-package-manager
Hi Kevin,
I did follow these instructions directly.
I’ve used MRTK for a Hololens production prior but the Quest 2 is new.
On Tue, Dec 21, 2021 at 16:03 Kevin Semple @.***> wrote:
Hey @polygonfuture https://github.com/polygonfuture, can you confirm that you followed these instructions to download the sample scenes?
https://docs.microsoft.com/en-us/windows/mixed-reality/mrtk-unity/running-example-scenes?view=mrtkunity-2021-05#using-mixed-reality-feature-tool-and-unity-package-manager
— Reply to this email directly, view it on GitHub https://github.com/microsoft/MixedRealityToolkit-Unity/issues/10372#issuecomment-999123105, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC3YFMLBFI3FS2JBEAZ2XWLUSD2R3ANCNFSM5J3N247Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>
--
Jonathan Fletcher Moore
🎨 polygonfuture.com https://www.polygonfuture.com
✉️ @.***
💭 870.692.6474
use <Microsoft.MixedReality.Toolkit.UI.ObjectManipulator>
use <Microsoft.MixedReality.Toolkit.UI.ObjectManipulator>
thx,saved my life
Just opened a PR to fix the issue. The fix will be included in 2.8.3. But please open bug reports against the Oculus integration package as this is caused by Meta not properly using namespace.