unreal.MinimalViewInfo

class unreal.MinimalViewInfo(location=[0.0, 0.0, 0.0], rotation=[0.0, 0.0, 0.0], fov=90.0, ortho_width=512.0, ortho_near_clip_plane=0.0, ortho_far_clip_plane=2097152.0, aspect_ratio=1.333333, constrain_aspect_ratio=False, use_field_of_view_for_lod=True, projection_mode=CameraProjectionMode.PERSPECTIVE, post_process_blend_weight=0.0, post_process_settings=[], off_center_projection_offset=[0.0, 0.0])

Bases: unreal.StructBase

Minimal View Info

C++ Source:

  • Module: Engine

  • File: CameraTypes.h

Editor Properties: (see get_editor_property/set_editor_property)

  • aspect_ratio (float): [Read-Write] Aspect Ratio: Aspect Ratio (Width/Height)

  • constrain_aspect_ratio (bool): [Read-Write] Constrain Aspect Ratio: If bConstrainAspectRatio is true, black bars will be added if the destination view has a different aspect ratio than this camera requested.

  • fov (float): [Read-Write] FOV: The horizontal field of view (in degrees) in perspective mode (ignored in orthographic mode).

  • location (Vector): [Read-Write] Location: Location

  • off_center_projection_offset (Vector2D): [Read-Only] Off Center Projection Offset: Off-axis / off-center projection offset as proportion of screen dimensions

  • ortho_far_clip_plane (float): [Read-Write] Ortho Far Clip Plane: The far plane distance of the orthographic view (in world units)

  • ortho_near_clip_plane (float): [Read-Write] Ortho Near Clip Plane: The near plane distance of the orthographic view (in world units)

  • ortho_width (float): [Read-Write] Ortho Width: The desired width (in world units) of the orthographic view (ignored in Perspective mode)

  • post_process_blend_weight (float): [Read-Write] Post Process Blend Weight: Indicates if PostProcessSettings should be applied.

  • post_process_settings (PostProcessSettings): [Read-Write] Post Process Settings: Post-process settings to use if PostProcessBlendWeight is non-zero.

  • projection_mode (CameraProjectionMode): [Read-Write] Projection Mode: The type of camera

  • rotation (Rotator): [Read-Write] Rotation: Rotation

  • use_field_of_view_for_lod (bool): [Read-Write] Use Field Of View for LOD: If true, account for the field of view angle when computing which level of detail to use for meshes.

property aspect_ratio

[Read-Write] Aspect Ratio: Aspect Ratio (Width/Height)

Type

(float)

calculate_projection_matrix() Matrix

Calculates the projection matrix using this view info’s aspect ratio (regardless of bConstrainAspectRatio)

Return type

Matrix

property constrain_aspect_ratio

[Read-Write] Constrain Aspect Ratio: If bConstrainAspectRatio is true, black bars will be added if the destination view has a different aspect ratio than this camera requested.

Type

(bool)

property fov

[Read-Write] FOV: The horizontal field of view (in degrees) in perspective mode (ignored in orthographic mode).

Type

(float)

property location

[Read-Write] Location: Location

Type

(Vector)

property off_center_projection_offset

[Read-Only] Off Center Projection Offset: Off-axis / off-center projection offset as proportion of screen dimensions

Type

(Vector2D)

property ortho_far_clip_plane

[Read-Write] Ortho Far Clip Plane: The far plane distance of the orthographic view (in world units)

Type

(float)

property ortho_near_clip_plane

[Read-Write] Ortho Near Clip Plane: The near plane distance of the orthographic view (in world units)

Type

(float)

property ortho_width

[Read-Write] Ortho Width: The desired width (in world units) of the orthographic view (ignored in Perspective mode)

Type

(float)

property post_process_blend_weight

[Read-Write] Post Process Blend Weight: Indicates if PostProcessSettings should be applied.

Type

(float)

property post_process_settings

[Read-Write] Post Process Settings: Post-process settings to use if PostProcessBlendWeight is non-zero.

Type

(PostProcessSettings)

property projection_mode

[Read-Write] Projection Mode: The type of camera

Type

(CameraProjectionMode)

property rotation

[Read-Write] Rotation: Rotation

Type

(Rotator)

property use_field_of_view_for_lod

[Read-Write] Use Field Of View for LOD: If true, account for the field of view angle when computing which level of detail to use for meshes.

Type

(bool)