What is the best way to reference multiple Canvas Images within C# script attached to my player in Unity?
Currently I have something similar too:
public Image image;
//Finds the Image Object being referenced.
image = GameObject.Find ("Canvas/Image").GetComponent<Image> ();
ExampleClassReferencesfor my scriptExampleClasswhich contains all the references as public objects and mark it as[System.Serializable]. I then have a public instance ofExampleClassReferencesinExampleClassso I can then assign them all in the inspector and minimize the class to stop it taking up loads of space. (Ofc if you are instantiating the object withExampleClasssome of the references may not carry over, this also may not be the best practice not sure) \$\endgroup\$