I’m trying to store the colors of objects found in array named “components” in array “originalColor” before changing the colors with OnMouseOver(). I’d like to then change them back to originalColor with OnMouseExit(). The below code is receiving “Object reference not set to an instance of an object” on the original Color line. Coding in C#. Please help.
public GameObject components;
Color originalColor;
for (int i = 0; i < components.Length; i++)
originalColor _= components*.renderer.material.color;*_