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 click on a 3d object and put an image (texture) in this and other objects?

I'm developing an application for hololens but I have almost zero experience in Unity and C # oriented games.
So I need the maximum help, putting some doubts here in the forum and studying.
How can I click on a cube and change the png image in it and other cubes?
Where do you advise me to study to help me in building the application and how?
Thank you for your attention

Tagged:

Answers

  • mark_grossnicklemark_grossnickle ✭✭✭ ✭✭✭

    I'd check out the windows holographic academy tutorials:
    https://docs.microsoft.com/en-us/windows/mixed-reality/academy

    The mixed reality toolkit is a great place to give your coding library a jump start (it includes buttons you could use to tap on a cube):
    https://github.com/Microsoft/MixedRealityToolkit-Unity

    And then I'd look at Unity's forums for how to swap materials/textures on a mesh.

    Tying it all together you could take the mixed reality toolkit's default scene, drop in a cube, add a collider and your initial material to it. Then you will need to add a button/interactible monobehavior that listens for the onClick and changes the material to something else.

    Good luck!

    Taqtile

Sign In or Register to comment.