Search Results for

    Show / Hide Table of Contents

    Class Camera

    Inheritance
    Object
    PoolObject
    Camera
    Implements
    INativeValue
    IDeletable
    IExistable
    ISpatial
    Inherited Members
    PoolObject.Handle
    PoolObject.NativeValue
    Object.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: GTA
    Assembly: ScriptHookVDotNet3.dll
    Syntax
    public sealed class Camera : PoolObject, INativeValue, IDeletable, IExistable, ISpatial

    Constructors

    | Improve this Doc View Source

    Camera(Int32)

    Declaration
    public Camera(int handle)
    Parameters
    Type Name Description
    Int32 handle

    Properties

    | Improve this Doc View Source

    DepthOfFieldStrength

    Sets the depth of field strength for this Camera.

    Declaration
    public float DepthOfFieldStrength { set; }
    Property Value
    Type Description
    Single
    | Improve this Doc View Source

    Direction

    Gets or sets the direction this Camera is pointing in.

    Declaration
    public Vector3 Direction { get; set; }
    Property Value
    Type Description
    Vector3
    | Improve this Doc View Source

    FarClip

    Gets or sets the far clip of this Camera.

    Declaration
    public float FarClip { get; set; }
    Property Value
    Type Description
    Single
    | Improve this Doc View Source

    FarDepthOfField

    Gets or sets the far depth of field of this Camera.

    Declaration
    public float FarDepthOfField { get; set; }
    Property Value
    Type Description
    Single
    | Improve this Doc View Source

    FieldOfView

    Gets or sets the field of view of this Camera.

    Declaration
    public float FieldOfView { get; set; }
    Property Value
    Type Description
    Single
    | Improve this Doc View Source

    ForwardVector

    Gets the forward vector of this Camera, see also Direction.

    Declaration
    public Vector3 ForwardVector { get; }
    Property Value
    Type Description
    Vector3
    | Improve this Doc View Source

    IsActive

    Gets or sets a value indicating whether this Camera is currently being rendered.

    Declaration
    public bool IsActive { get; set; }
    Property Value
    Type Description
    Boolean

    true if this Camera is active; otherwise, false.

    | Improve this Doc View Source

    IsInterpolating

    Gets a value indicating whether this Camera is interpolating.

    Declaration
    public bool IsInterpolating { get; }
    Property Value
    Type Description
    Boolean

    true if this Camera is interpolating; otherwise, false.

    | Improve this Doc View Source

    IsShaking

    Gets a value indicating whether this Camera is shaking.

    Declaration
    public bool IsShaking { get; }
    Property Value
    Type Description
    Boolean

    true if this Camera is shaking; otherwise, false.

    | Improve this Doc View Source

    Matrix

    Gets the matrix of this Camera.

    Declaration
    public Matrix Matrix { get; }
    Property Value
    Type Description
    Matrix
    | Improve this Doc View Source

    MemoryAddress

    Gets the memory address of this Camera.

    Declaration
    public IntPtr MemoryAddress { get; }
    Property Value
    Type Description
    IntPtr
    | Improve this Doc View Source

    MotionBlurStrength

    Sets the strength of the motion blur for this Camera

    Declaration
    public float MotionBlurStrength { set; }
    Property Value
    Type Description
    Single
    | Improve this Doc View Source

    NearClip

    Gets or sets the near clip of this Camera.

    Declaration
    public float NearClip { get; set; }
    Property Value
    Type Description
    Single
    | Improve this Doc View Source

    NearDepthOfField

    Sets the near depth of field for this Camera.

    Declaration
    public float NearDepthOfField { set; }
    Property Value
    Type Description
    Single
    | Improve this Doc View Source

    Position

    Gets or sets the position of this Camera.

    Declaration
    public Vector3 Position { get; set; }
    Property Value
    Type Description
    Vector3
    | Improve this Doc View Source

    RightVector

    Gets the right vector of this Camera.

    Declaration
    public Vector3 RightVector { get; }
    Property Value
    Type Description
    Vector3
    | Improve this Doc View Source

    Rotation

    Gets or sets the rotation of this Camera.

    Declaration
    public Vector3 Rotation { get; set; }
    Property Value
    Type Description
    Vector3

    The yaw, pitch and roll rotations measured in degrees.

    | Improve this Doc View Source

    ShakeAmplitude

    Sets the shake amplitude for this Camera.

    Declaration
    public float ShakeAmplitude { set; }
    Property Value
    Type Description
    Single
    | Improve this Doc View Source

    UpVector

    Gets the up vector of this Camera.

    Declaration
    public Vector3 UpVector { get; }
    Property Value
    Type Description
    Vector3

    Methods

    | Improve this Doc View Source

    AttachTo(Entity, Vector3)

    Attaches this Camera to a specific Entity.

    Declaration
    public void AttachTo(Entity entity, Vector3 offset)
    Parameters
    Type Name Description
    Entity entity

    The Entity to attach to.

    Vector3 offset

    The offset from the entity to attach to.

    | Improve this Doc View Source

    AttachTo(PedBone, Vector3)

    Attaches this Camera to a specific PedBone.

    Declaration
    public void AttachTo(PedBone pedBone, Vector3 offset)
    Parameters
    Type Name Description
    PedBone pedBone

    The PedBone to attach to.

    Vector3 offset

    The offset from the pedBone to attach to.

    | Improve this Doc View Source

    Delete()

    Destroys this Camera.

    Declaration
    public override void Delete()
    Overrides
    PoolObject.Delete()
    | Improve this Doc View Source

    Detach()

    Detaches this Camera from any Entity or PedBone it may be attached to.

    Declaration
    public void Detach()
    | Improve this Doc View Source

    Equals(Object)

    Determines if an Object refers to the same camera as this Camera.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    The Object to check.

    Returns
    Type Description
    Boolean

    true if the obj is the same camera as this Camera; otherwise, false.

    Overrides
    Object.Equals(Object)
    | Improve this Doc View Source

    Exists()

    Determines if this Camera exists.

    Declaration
    public override bool Exists()
    Returns
    Type Description
    Boolean

    true if this Camera exists; otherwise, false.

    Overrides
    PoolObject.Exists()
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    Object.GetHashCode()
    | Improve this Doc View Source

    GetOffsetPosition(Vector3)

    Gets the position in world coordinates of an offset relative to this Camera

    Declaration
    public Vector3 GetOffsetPosition(Vector3 offset)
    Parameters
    Type Name Description
    Vector3 offset

    The offset from this Camera.

    Returns
    Type Description
    Vector3
    | Improve this Doc View Source

    GetPositionOffset(Vector3)

    Gets the relative offset of this Camera from a world coordinates position

    Declaration
    public Vector3 GetPositionOffset(Vector3 worldCoords)
    Parameters
    Type Name Description
    Vector3 worldCoords

    The world coordinates.

    Returns
    Type Description
    Vector3
    | Improve this Doc View Source

    InterpTo(Camera, Int32, Int32, Int32)

    Moves this Camera to the to position.

    Declaration
    public void InterpTo(Camera to, int duration, int easePosition, int easeRotation)
    Parameters
    Type Name Description
    Camera to
    Int32 duration
    Int32 easePosition
    Int32 easeRotation
    | Improve this Doc View Source

    PointAt(Entity, Vector3)

    Points this Camera at a specified Entity.

    Declaration
    public void PointAt(Entity target, Vector3 offset = default(Vector3))
    Parameters
    Type Name Description
    Entity target

    The Entity to point at.

    Vector3 offset

    The offset from the target to point at.

    | Improve this Doc View Source

    PointAt(Vector3)

    Points this Camera at a specified position.

    Declaration
    public void PointAt(Vector3 target)
    Parameters
    Type Name Description
    Vector3 target

    The position to point at.

    | Improve this Doc View Source

    PointAt(PedBone, Vector3)

    Points this Camera at a specified PedBone.

    Declaration
    public void PointAt(PedBone target, Vector3 offset = default(Vector3))
    Parameters
    Type Name Description
    PedBone target

    The PedBone to point at.

    Vector3 offset

    The offset from the target to point at

    | Improve this Doc View Source

    Shake(CameraShake, Single)

    Shakes this Camera.

    Declaration
    public void Shake(CameraShake shakeType, float amplitude)
    Parameters
    Type Name Description
    CameraShake shakeType

    Type of the shake to apply.

    Single amplitude

    The amplitude of the shaking.

    | Improve this Doc View Source

    StopPointing()

    Stops this Camera pointing at a specific target.

    Declaration
    public void StopPointing()
    | Improve this Doc View Source

    StopShaking()

    Stops shaking this Camera.

    Declaration
    public void StopShaking()

    Operators

    | Improve this Doc View Source

    Equality(Camera, Camera)

    Determines if two Cameras refer to the same camera.

    Declaration
    public static bool operator ==(Camera left, Camera right)
    Parameters
    Type Name Description
    Camera left

    The left Camera.

    Camera right

    The right Camera.

    Returns
    Type Description
    Boolean

    true if left is the same camera as right; otherwise, false.

    | Improve this Doc View Source

    Implicit(Camera to InputArgument)

    Converts a Camera to a native input argument.

    Declaration
    public static implicit operator InputArgument(Camera value)
    Parameters
    Type Name Description
    Camera value
    Returns
    Type Description
    InputArgument
    | Improve this Doc View Source

    Inequality(Camera, Camera)

    Determines if two Checkpoints don't refer to the same camera.

    Declaration
    public static bool operator !=(Camera left, Camera right)
    Parameters
    Type Name Description
    Camera left

    The left Camera.

    Camera right

    The right Camera.

    Returns
    Type Description
    Boolean

    true if left is not the same camera as right; otherwise, false.

    Implements

    INativeValue
    IDeletable
    IExistable
    ISpatial
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX