forked from cgvr/DeltaVR
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			321 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			321 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using System;
 | 
						|
using System.Collections;
 | 
						|
using System.Collections.Generic;
 | 
						|
using UnityEngine;
 | 
						|
 | 
						|
public class UILookAt : MonoBehaviour
 | 
						|
{
 | 
						|
 | 
						|
    private void LateUpdate()
 | 
						|
    {
 | 
						|
        transform.LookAt(transform.position + Camera.main.transform.rotation * Vector3.forward, Camera.main.transform.rotation * Vector3.up);
 | 
						|
    }
 | 
						|
}
 |