Mixedrealitytoolkit-unity: Misusing of static class ExtensionMethods

Created on 4 Jul 2018  路  1Comment  路  Source: microsoft/MixedRealityToolkit-Unity

Overview

Using an ExtensionMethods-Class under HoloToolkit-ExamplesMotionControllers-GrabMechanicsScriptsExtensionMethod.cs is not advisable.
Any personal use of own ExtensionMethods class is causing a compiler error: CS0101.

Expected Behavior

Any HoloToolkit ExtensionsMethods class should be removed or use its own namespace.

Actual Behavior

Assets/Scripts/ExtensionMethods.cs(5,21): error CS0101: The namespace global::' already contains a definition forExtensionMethods'

Steps to reproduce

Create an empty project and add the script descriped here: https://unity3d.com/de/learn/tutorials/topics/scripting/extension-methods

Unity Editor Version

2017.4.6f1

Mixed Reality Toolkit Release Version

2017.4.0.0

Most helpful comment

Thanks for bringing this to our attention. Likely it's not in the proper namespace.

>All comments

Thanks for bringing this to our attention. Likely it's not in the proper namespace.

Was this page helpful?
0 / 5 - 0 ratings