Vector3.Distance Question

Hope I am asking this right, haven’t played with Unity for awhile but I am trying to track the distance for 2 obejcts, I am doing dist= Vector3.Distance(transform.position, target.position) in my update I have print(dist). Now when I move my objects close together is doesn’t calculate the current distance between two objects could someone tell me what i am missing?

It sounds like you aren’t updating dist every frame and only check it once.

Put everything in Update()

Thanks bro,
I forgot that is where you put that, see I have been away too long. 4 months.LOL