using System.Collections; using System.Collections.Generic; using UnityEngine; public class FreeLaser : MonoBehaviour { public Transform myObject; //The transform of the object you want void Start(); { Debug.Log(myObject.position); } }