BillboardManager Class

Summary

Controls the rotation of any objects it is given to make them constantly face its Weaver.Examples.BillboardManager.Transform
Assembly
Weaver.dll
Namespace
Weaver.Examples
Base Types
  • MonoBehaviour
graph BT Type-->Base0["MonoBehaviour"] Type["BillboardManager"] class Type type-node

Syntax

public class BillboardManager : MonoBehaviour

Fields

Name Constant Value Summary
Billboards
The objects being managed.
billboardsFacePoint
If true, billboards will face the position of this object (looks better when the camera rotates). Otherwise they will face the same direction as this object (more efficient).

Properties

Name Value Summary
Transform Transform
The UnityEngine.Component.transform, cached for efficienty.

Methods

Name Value Summary
Add(Transform) void
Adds the given `billboard` to the list of objects being managed.
Awake() void
Called by Unity the first time this component becomes enabled and active. Cached the UnityEngine.Component.transform.
GetMain() BillboardManager
Gets the Weaver.Examples.BillboardManager attached to UnityEngine.Camera.main. Automatically creates a new one if none was present.
static
GetMain<T>() BillboardManager
Gets the Weaver.Examples.BillboardManager of the specified subtype attached to UnityEngine.Camera.main. Automatically creates a new one if none was present.
static
LateUpdate() void
Called once per frame by Unity. Updates the rotations of all objects being managed to keep them facing the Weaver.Examples.BillboardManager.Transform.
Remove(Transform) void
Removes the given `billboard` from the list of objects being managed.