Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

Where can I learn is the naming convention of the Holotoolkit namespaces?

Hi,

I'm new to C# and unity, and one thing that has been confusing me is the namespace conventions after importing the holotoolkit into unity.

For example as in gaze manager (Assets->HoloToolkit->Input->Scripts->Gaze):

"using HoloToolkit.Uniyt.InputModule"

Does this use all the assets under:
Assets:
->Holotoolkit
->Input

Also if I want to access GazeManager.cs, do I have to do something such as:

"using HoloToolkit.Uniyt.InputModule.Scripts.Gaze"

I apologize if this is an obvious question, but it sure has my head spinning a bit. I've been using python the last 5 years or so, and as such I'm more accustomed to that system of important where convention is to import a module with an alias.
i.e. import numpy as np

Thanks!

Answers

  • Options

    Unfortunately I don't think there's a documented list of namespaces anywhere. You can learn by browsing the code on GitHub, but if you know the name of the thing you want to use you can always just type that thing and then right-click on the name and Visual Studio will offer to add the necessary using statement for you automatically.

    Our Holographic world is here

    RoadToHolo.com      WikiHolo.net      @jbienz
    I work in Developer Experiences at Microsoft. My posts are based on my own experience and don't represent Microsoft or HoloLens.

  • Options

    To add to what @jbienzms mentioned, I am not sure that adding namespaces was all that consistent initially, so I don't know that everything in the HTK has a namespace at the moment. Unity does not enforce the need for them, so....

  • Options

    I'm not sure that it really needs to be more documented than it is, its perfectly discoverable in the Object Browser.

Sign In or Register to comment.