UDrawFrustumComponent

Inheritance Hierarchy

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.

Overridden from USceneComponent

Name Description

Public function Virtual

FBoxSphereBo ...

 

CalcBounds

(
    const FTransform & LocalToWorld
)

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

References

Module

Engine

Header

Runtime/Engine/Classes/Components/DrawFrustumComponent.h