i want to access the various sprites present on the UI canvas using a single variable … Like on which sprite i click that sprite can be access by using the single variable.
Use a UI Button object and assign your graphics to the Image component of the button object. Then use OnClick event and call a method in a script you have on your controller object (ie. MenuManager).