3rd Eye Scene C#
3rd Eye Scene C# documentation
|
A utility object which orients other objects to face the camera. More...
Classes | |
struct | ObjectReference |
Structure used to manage registered objects. | |
Public Member Functions | |
void | Add (GameObject obj, Vector3 forward, Vector3 up) |
Routs to Add(GameObject, Vector3, Vector3) on the primary instance. | |
void | Remove (GameObject obj) |
Routs to Remove(GameObject) on the primary instance. | |
Static Public Member Functions | |
static void | AddToManager (GameObject obj, Vector3 forward, Vector3 up) |
Routs to Add(GameObject, Vector3, Vector3) on the primary instance. | |
static void | RemoveFromManager (GameObject obj) |
Routs to Remove(GameObject) on the primary instance. |
A utility object which orients other objects to face the camera.
Intended for text objects.
The
Update()
works on many objects rather than attaching this script to one object for performance reasons. Because of this, only one object with the behaviour is required.
The first instance of this object started is registered as the primary instance. The static calls are routed to this instance until it is destroyed.
void Tes::ScreenFacing::Add | ( | GameObject | obj, |
Vector3 | forward, | ||
Vector3 | up | ||
) | [inline] |
Routs to Add(GameObject, Vector3, Vector3) on the primary instance.
obj | The object to add. |
forward | The vector to face to the camera. |
up | The object's up vector. |
static void Tes::ScreenFacing::AddToManager | ( | GameObject | obj, |
Vector3 | forward, | ||
Vector3 | up | ||
) | [inline, static] |
Routs to Add(GameObject, Vector3, Vector3) on the primary instance.
obj | The object to add. |
forward | The vector to face to the camera. |
up | The object's up vector. |
void Tes::ScreenFacing::Remove | ( | GameObject | obj | ) | [inline] |
Routs to Remove(GameObject) on the primary instance.
obj | The object to remove. |
static void Tes::ScreenFacing::RemoveFromManager | ( | GameObject | obj | ) | [inline, static] |
Routs to Remove(GameObject) on the primary instance.
obj | The object to remove. |