Skip to content

Instantly share code, notes, and snippets.

View Cassiobsk8's full-sized avatar

Cássio Klafke Ferreira Cassiobsk8

View GitHub Profile
@ditzel
ditzel / CameraBillboard.cs
Created February 11, 2018 13:53
Rotates an object (e.g. a canvas) to face it towards the camera
/*
* Rotates an object towards the currently active camera
*
* 1. Attach CameraBillboard component to a canvas or a game object
* 2. Specify the offset and you're done
*
**/
using UnityEngine;