BomberUnits
...a Unity learning project
Billboard Class Reference

The billboard script allows this gameobject to always face a set target camera. More...

+ Inheritance diagram for Billboard:
+ Collaboration diagram for Billboard:

Public Attributes

Camera target_camera
 

Private Member Functions

void Start ()
 
void LateUpdate ()
 
void OnEnable ()
 
void OnDisable ()
 

Private Attributes

Quaternion savedRotation
 Backup of initial rotation to return to when not billboarding.
 

Detailed Description

The billboard script allows this gameobject to always face a set target camera.

!– Will use the main camera if no target is set. The orientation will reset when this script is disabled.

Definition at line 8 of file Billboard.cs.


The documentation for this class was generated from the following file: