Material.colorvar color : ColorDescriptionThe main material's color. The same as using GetColor or SetColor with "_Color" name.
JavaScript
// Fade the color from red to green using UnityEngine; import UnityEngine |
|
||||
| Scripting > Runtime Classes > Material | Switch to Component | |||
Material.colorvar color : ColorDescriptionThe main material's color. The same as using GetColor or SetColor with "_Color" name.
JavaScript
// Fade the color from red to green using UnityEngine; import UnityEngine |