DrawWireCone

Draws a wireframe cone

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/SceneManagement.h

Include

#include "SceneManagement.h"

Source

/Engine/Source/Runtime/Engine/Private/PrimitiveDrawingUtils.cpp

Syntax

void DrawWireCone
(
    class FPrimitiveDrawInterface * PDI,
    TArray < FVector > & Verts,
    const FMatrix & Transform,
    float ConeLength,
    float ConeAngle,
    int32 ConeSides,
    const FLinearColor & Color,
    uint8 DepthPriority,
    float Thickness,
    float DepthBias,
    bool bScreenSpace
)

Remarks

Draws a wireframe cone

Parameters

Parameter

Description

PDI

Draw interface.

Transform

Generic transform to apply (ex. a local-to-world transform).

ConeLength

Pre-transform distance from apex to the perimeter of the cone base. The Radius of the base is ConeLength * sin(ConeAngle).

ConeAngle

Angle of the cone in degrees. This is 1/2 the cone aperture.

ConeSides

Numbers of sides that the cone has.

Color

Color of the cone.

DepthPriority

Depth priority for the cone.

Verts

Out param, the positions of the verts at the cone base.

Thickness

Thickness of the lines comprising the cone

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