gameObject.GetComponent().material.color
- color is a class of material.
- material is a class of Renderer.
Also, if you could tell me what a class is, I would appreciate it!
Thanks in advance.
gameObject.GetComponent().material.color
Also, if you could tell me what a class is, I would appreciate it!
Thanks in advance.
I don’t mean to be rude but I’m sick of people trying to use Unity without bothering to even look at learning C# or UnityScript first.
With that out of the way:
Color does not inherit from material.
Material does not inherit from Renderer.
Color is a struct and not a class.
I’d advise watching both of those tutorials series from start to finish before you continue to use Unity.