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

Change floor material with a voice command

Hey, how do I change the floor material using the keyword manager within the surfaceplane script?

Tagged:

Answers

  • Options

    Hi,

    The voice command can call a Method. In that method call the setter Method of the matherial. Now you have to tell the SpatialMappingManager, that the material has changed. Maybe you can use something like
    public void SetSurfaceMaterial(Material surfaceMaterial)
    in the manager

  • Options

    I tried your suggestion, it changes all the other materials except for the floor plane.

  • Options

    So when I start the game, the gameobject SurfacePlanes gets created. I assume I need to change the materials on this gameobject. But placing it keyword manager doesn't result in the option to change the material. Is this possible to code in C# or am I doing it completely wrong?

Sign In or Register to comment.