Skip to content

Instantly share code, notes, and snippets.

Created November 12, 2020 15:56
What would you like to do?
// Code based on CameraFacingBillboard by Nei Carter:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Billboard : MonoBehaviour
public Transform cameraTransform;
void LateUpdate()
transform.LookAt(transform.position + cameraTransform.rotation * Vector3.forward, cameraTransform.rotation * Vector3.up);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment