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.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback