unity get object position on screen

Code Example - unity get object position on screen

                
                        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);
    }
}