Hey i want to Usa a sprite as a Billboard to my Camera but with a slight offset. the code looks like this at the moment:
using UnityEngine;
using System.Collections;
public class CameraFacingBillboard : MonoBehaviour
{
public Camera m_Camera;
void Update()
{
transform.LookAt(transform.position + m_Camera.transform.rotation * Vector3.forward,
m_Camera.transform.rotation * Vector3.up);
}
}
that leads to the behavior, that the billboard is facing straight to the camera, but i want to have, lets say 10° more on the X and Z axis. so that the billboard is a little bit out of angle, how can i achieve this?