Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Platform: Cannot run / compile example projects. 'ObjectManipulator' does not contain a definition for 'OnManipulationEnded' #10372

Closed
polygonfuture opened this issue Dec 11, 2021 · 5 comments · Fixed by #11212
Assignees
Labels
Example/Test Scene Platform - Oculus Issues specific to Oculus devices and the Oculus platform

Comments

@polygonfuture
Copy link

polygonfuture commented Dec 11, 2021

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

  1. Install Unity 2021.1.10.
  2. Install Mixed Reality FeatureTool 1.0.2111.0-Preview
  3. 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
  1. Install Oculus XR Plugin
  2. 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)

@polygonfuture polygonfuture changed the title Android Platform: 'ObjectManipulator' does not contain a definition for 'OnManipulationEnded' Android Platform: Cannot run / compile example projects. 'ObjectManipulator' does not contain a definition for 'OnManipulationEnded' Dec 11, 2021
@polar-kev polar-kev added Platform - Oculus Issues specific to Oculus devices and the Oculus platform Example/Test Scene labels Dec 21, 2021
@polar-kev
Copy link
Contributor

@polygonfuture
Copy link
Author

polygonfuture commented Dec 23, 2021 via email

@ba5909
Copy link

ba5909 commented Jan 20, 2022

use <Microsoft.MixedReality.Toolkit.UI.ObjectManipulator>

@MartinRGB
Copy link

use <Microsoft.MixedReality.Toolkit.UI.ObjectManipulator>

thx,saved my life

@MaxWang-MS MaxWang-MS self-assigned this Nov 16, 2022
@MaxWang-MS MaxWang-MS linked a pull request Nov 18, 2022 that will close this issue
@MaxWang-MS
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Example/Test Scene Platform - Oculus Issues specific to Oculus devices and the Oculus platform
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants