$ 0 0 simply: Debug.Log(transform.position); You don't need to use GetComponent with Transform, it's already got transform as a helper property