It’s possible to calculate the direction between two objects or points in Unity by subtracting the position of the target from the position of the origin.
Normalising the result means that the length of the vector is limited to one. This allows you to easily calculate distance along that direction, by multiplying it.
Like this:
Vector3 direction = (transform.position - directionTarget.position).normalized;