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
◆ MainCamera
Camera MoreMountains.Tools.MMBillboard.MainCamera |
|
getset |
The documentation for this class was generated from the following file:
- F:/Github/Store/MMFeedbacksStore/Assets/MMFeedbacks/MMTools/Tools/Camera/MMBillboard.cs