how to calculate distance of object from camera??
ALSO THERE ARE MULTIPLE OBJECTS.Please help me??
Calculate the distance, using Vector3.Distance might seem a good idea.
For example :
var object : Transform;
Vector3.Distance(object.position, transform.position);
If there are multiple objects, you can use GameObject.FindGameObjectsWithTag
Hope this helps.