Search
 
SCRIPT & CODE EXAMPLE
 

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

PREVIOUS NEXT
Code Example
Csharp :: c# message box carriage return 
Csharp :: c# class where T : enum 
Csharp :: Debug output to console and a log 
Csharp :: mental retardation 
Csharp :: asp.net core httpdelete with body 
Csharp :: ado .net nullable int datareader 
Csharp :: what error code i should return in asp.net core whether user name or password are incorrect 
Csharp :: c# .net core kendo dropdownlistfor enum 
Csharp :: search list for words c# 
Csharp :: Service Locator, Unity 
Csharp :: get the next letter after specific character in c# 
Csharp :: binance slp to php 
Csharp :: Difference between PhotonNetwork.Ismasterclient and PhotonView.ismasterclient 
Csharp :: Store Images In SQL Server Using EF Core And ASP.NET Core 
Csharp :: how to set the forgound color of listitems in c# 
Csharp :: c# string replace multiple matches with one charactar 
Csharp :: NetConnectionDispatch 
Csharp :: How to keep line breaks in SQL Server using ASP.NET and C#? 
Csharp :: .net mvc foreach with index 
Csharp :: using selected item in listbox c# to fill texbox 
Csharp :: DrawImage resize to target size c# 
Csharp :: how to execute a function in every object of list c# 
Csharp :: remove language folders build visual studio 
Csharp :: unity create 
Csharp :: custom convert list object to other object c# 
Csharp :: asp.net web hooks 
Csharp :: attribute decorator to require email format of string c# 
Csharp :: wpf settings core 
Csharp :: blender how to switch cameras 
Csharp :: how to get c# code of aspx page 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =