Skip to content

Instantly share code, notes, and snippets.

View zereyak13's full-sized avatar
🎯
Focusing

Taha Zereyak zereyak13

🎯
Focusing
View GitHub Profile
@zereyak13
zereyak13 / CameraBillboard.cs
Created August 12, 2021 05:40 — forked from ditzel/CameraBillboard.cs
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;