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.

How to get Labels for Objects in unity

Hi,

I am trying to attach labels to objects with a line coming from objects to label.....
Attached few samples for reference....
.

The labels are not clear sorry about that...The second file is clear for reference
I am actually designing a game that needs this type of labelling.
Is there a way so that I can do that thing out....Please help me out.

Answers

  • This is a game design issue, not Hololens. Please refer to Unity forum.

  • Unity UI will be helpful for the info cards. You will need a Canvas that uses World coordinates, and then each of those little cards would be a Panel with some child text. You can use a Unity LineRenderer to do the line between the card and the point of interest.

    Some things you'll want to research:

    1. You'll want to read up on how to Get Unity UI running on HoloLens.

    2. I suggest you take a look at a great little project called Unity UI Extensions. It lets you do some really neat things in Unity UI that aren't possible out of the box. You won't need it for the card scenario above but it's worth bookmarking somewhere for future projects.

    Best of luck with your project!

    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.

  • Hi jbienzms,
    Thanks a lot for your help.So, I need to use Unity UI. I'll surely take a look on "Unity UI Extensions" project.

    Thanks for your best wishes!

  • Hi,

    I am trying to attach labels to one of my 3D models.So, what I did is I took Line Renderer as a component for this model but when I am trying to attach a text for labelling that part I am unable to connect this line with the text..Please tell me where I am going wrong.

  • Can u share the code @Afreen_Firdous26

Sign In or Register to comment.