Add this class to an object (usually a sprite) and it'll face the camera at all times
More...
Add this class to an object (usually a sprite) and it'll face the camera at all times
◆ Awake()
| virtual void MoreMountains.Tools.MMBillboard.Awake |
( |
| ) |
|
|
protectedvirtual |
On awake we grab a camera if needed, and nest our object
◆ GrabMainCamera()
| virtual void MoreMountains.Tools.MMBillboard.GrabMainCamera |
( |
| ) |
|
|
protectedvirtual |
◆ NestThisObject()
| virtual void MoreMountains.Tools.MMBillboard.NestThisObject |
( |
| ) |
|
|
protectedvirtual |
Nests this object below a parent container
◆ Update()
| virtual void MoreMountains.Tools.MMBillboard.Update |
( |
| ) |
|
|
protectedvirtual |
On update, we change our parent container's rotation to face the camera
◆ _parentContainer
| GameObject MoreMountains.Tools.MMBillboard._parentContainer |
|
protected |
◆ GrabMainCameraOnStart
| bool MoreMountains.Tools.MMBillboard.GrabMainCameraOnStart = true |
whether or not this object should automatically grab a camera on start
◆ NestObject
| bool MoreMountains.Tools.MMBillboard.NestObject = true |
whether or not to nest this object below a parent container
◆ OffsetDirection
| Vector3 MoreMountains.Tools.MMBillboard.OffsetDirection = Vector3.back |
the Vector3 to offset the look at direction by
◆ Up
| Vector3 MoreMountains.Tools.MMBillboard.Up = Vector3.up |
the Vector3 to consider as "world up"
◆ MainCamera
| virtual Camera MoreMountains.Tools.MMBillboard.MainCamera |
|
getset |
The documentation for this class was generated from the following file:
- F:/Github/Store/Feel/Assets/Feel/MMTools/Accessories/MMCamera/MMBillboard.cs