docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct CameraTarget

    Structure for holding the procedural motion targets for a CinemachineCamera. The main TrackingTarget is used by default for all object tracking. Optionally, a second LookAt target can be provided to make the camera follow one object while pointing at another.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Cinemachine
    Assembly: Unity.Cinemachine.dll
    Syntax
    [Serializable]
    public struct CameraTarget

    Fields

    CustomLookAtTarget

    If false, TrackingTarget will be used for all object tracking.
    If true, then LookAtTarget is used for rotation tracking and TrackingTarget is used only for position tracking.

    Declaration
    public bool CustomLookAtTarget
    Field Value
    Type Description
    bool

    LookAtTarget

    Optional secondary object for the camera to look at

    Declaration
    [Tooltip("Object for the camera to look at")]
    public Transform LookAtTarget
    Field Value
    Type Description
    Transform

    TrackingTarget

    Object for the camera to follow

    Declaration
    [Tooltip("Object for the camera to follow")]
    public Transform TrackingTarget
    Field Value
    Type Description
    Transform
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)