Files
Cielonos/Assets/External VFXs/Matthew Guz/Shaders Pack/Scripts/LookAtCamera.cs

23 lines
425 B
C#
Raw Normal View History

2025-11-25 08:19:33 -05:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace MatthewAssets
{
public class LookAtCamera : MonoBehaviour
{
Camera _cam;
void Start()
{
_cam = Camera.main;
}
// Update is called once per frame
void Update()
{
transform.forward = _cam.transform.position - transform.position;
}
}
}