Hello everyone.

We have decided to phase out the Mixed Reality Forums over the next few months in favor of other ways to connect with us.

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.

The plan between now and the beginning of May is to clean up old, unanswered questions that are no longer relevant. The forums will remain open and usable.

On May 1st we will be locking the forums to new posts and replies. They will remain available for another three months for the purposes of searching them, and then they will be closed altogether on August 1st.

So, where does that leave our awesome community to ask questions? Well, there are a few places we want to engage with you. 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. 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.