Class LookAt
Will make a transform look at a target.
Namespace: GGL.Components
Assembly: GGL.dll
Syntax
[AddComponentMenu("GG-Library/MISC/Look At")]
[HelpURL("https://ggl.yoannhaffner.com/api/GGL.Components.LookAt.html")]
public class LookAt : MonoBehaviour
Remarks
If no target set, will look at camera.
Fields
| Edit this page View SourcerotationOffset
Declaration
public Vector3 rotationOffset
Field Value
Type | Description |
---|---|
Vector3 | Offset applied to the final rotation. |
target
Declaration
public Transform target
Field Value
Type | Description |
---|---|
Transform | Target to look at. |