🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Unity: Billboard Effect in Canvas World Space + [C# Script]

Started by
0 comments, last by ThisIsFix 5 years ago

YouTube Video Tutorialhttps://www.youtube.com/watch?v=et6BAdlxECw&t=7s


using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BillboardFX : MonoBehaviour
{
	public Transform camTransform;

	Quaternion originalRotation;

    void Start()
    {
        originalRotation = transform.rotation;
    }

    void Update()
    {
     	transform.rotation = camTransform.rotation * originalRotation;   
    }
}

Script Linkhttps://github.com/ThisIsFix/Unity-Billboard

Advertisement

This topic is closed to new replies.

Advertisement