Is this true?
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.
Answer by Cepheid · Nov 17, 2016 at 03:52 AM
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.
Your answer
Follow this Question
Related Questions
Assigning to array give NullReferenceExecption!?!! 0 Answers
Accessing Variables inside classes inside other classes? 1 Answer
Can't get to work a non behaviour constructor with random generated variables 1 Answer
How can I update UI Text score using PlayerPrefs.Getint() on startup? 1 Answer
storing multiple data types in a list 0 Answers