3rd Eye Scene C#
3rd Eye Scene C# documentation
Tes::ScreenFacing Class Reference

A utility object which orients other objects to face the camera. More...

List of all members.

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.

Detailed Description

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.


Member Function Documentation

void Tes::ScreenFacing::Add ( GameObject  obj,
Vector3  forward,
Vector3  up 
) [inline]

Routs to Add(GameObject, Vector3, Vector3) on the primary instance.

Parameters:
objThe object to add.
forwardThe vector to face to the camera.
upThe 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.

Parameters:
objThe object to add.
forwardThe vector to face to the camera.
upThe object's up vector.
void Tes::ScreenFacing::Remove ( GameObject  obj) [inline]

Routs to Remove(GameObject) on the primary instance.

Parameters:
objThe object to remove.
static void Tes::ScreenFacing::RemoveFromManager ( GameObject  obj) [inline, static]

Routs to Remove(GameObject) on the primary instance.

Parameters:
objThe object to remove.

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Properties Events