UDrawFrustumComponent

Utility component for drawing a view frustum.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/DrawFrustumComponent.h

Include

#include "Components/DrawFrustumComponent.h"

Syntax

class UDrawFrustumComponent : public UPrimitiveComponent

Remarks

Utility component for drawing a view frustum. Origin is at the component location, frustum points down position X axis.

Variables

Name Description

Public variable

float

 

FrustumAngle

Angle of longest dimension of view shape. If the angle is 0 then an orthographic projection is used

Public variable

float

 

FrustumAspectRatio

Ratio of horizontal size over vertical size.

Public variable

FColor

 

FrustumColor

Color to draw the wireframe frustum.

Public variable

float

 

FrustumEndDist

Distance from origin to stop drawing the frustum.

Public variable

float

 

FrustumStartDist

Distance from origin to start drawing the frustum.

Public variable

UTexture *

 

Texture

Optional texture to show on the near plane

Constructors

Name Description

Public function

UDrawFrustumComponent

(
    const FObjectInitializer& ObjectIn...
)

Overridden from UPrimitiveComponent

Name Description

Public function Virtual

FPrimitiveSc...

 

CreateSceneProxy()

Creates a proxy to represent the primitive to the scene manager in the rendering thread.

Public function Virtual Const

bool

 

IgnoreBoundsForEditorFocus()

Whether or not the bounds of this component should be considered when focusing the editor camera to an actor with this component in it.

Overridden from USceneComponent

Name Description

Public function Virtual Const

FBoxSphereBo...

 

CalcBounds

(
    const FTransform& LocalToWorld
)

Calculate the bounds of the component. Default behavior is a bounding box/sphere of zero size.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss