Search Results for

    Show / Hide Table of Contents

    Class LookAt

    Will make a transform look at a target.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    LookAt
    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 Source

    rotationOffset

    Declaration
    public Vector3 rotationOffset
    Field Value
    Type Description
    Vector3

    Offset applied to the final rotation.

    | Edit this page View Source

    target

    Declaration
    public Transform target
    Field Value
    Type Description
    Transform

    Target to look at.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX