Answers for "billboard canvas unity"

C#
0

billboard canvas unity

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;   
    }
}
Posted by: Guest on August-03-2020

C# Answers by Framework

Browse Popular Code Answers by Language