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.
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
Changing colors of objects in Unity dynamically
Hi all!
I'm trying to get my bearings in unity and using scripts to control the holograms and I want to change the colors of different objects (just cubes, but lots of them) every few seconds independent of each other. What would be the best way to go about that to change each object's color? Would I need a new material for each color I am trying to use?
Thanks!
0
Answers
Matt,
You can change the color via a script attached to each cube. The lambert shader in the holotoolkit allows for this, just make sure you have the main color option checked and refer to the unity scripting documentation here:
http://docs.unity3d.com/ScriptReference/Material-color.html
Cheers,
Ryan
Since this is a general Unity question, it is better to ask it in the unity developer forums at: forum.unity3d.com/