Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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);
    }
}
 
PREVIOUS NEXT
Tagged: #unity #object #position #screen
ADD COMMENT
Topic
Name
9+1 =