MeshDebugDraw::DrawSimpleGrid

Draw a basic 2D grid with a number of lines at given spacing

Windows
MacOS
Linux

References

Module

ModelingComponents

Header

/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Public/Drawing/MeshDebugDrawing.h

Include

#include "Drawing/MeshDebugDrawing.h"

Source

/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Private/Drawing/MeshDebugDrawing.cpp

Syntax

namespace MeshDebugDraw
{
    void MeshDebugDraw::DrawSimpleGrid
    (
        const FFrame3f & LocalFrame,
        int GridLines,
        float GridLineSpacing,
        float LineWidth,
        FColor Color,
        bool bDepthTested,
        FPrimitiveDrawInterface * PDI,
        const FTransform & Transform
    )
}

Remarks

Draw a basic 2D grid with a number of lines at given spacing

Parameters

Parameter

Description

LocalFrame

Pre-transform frame of grid (grid lies in XY plane).

GridLines

number of grid lines. If odd, there is a center-line, if even then frame center is at center of a grid square

GridLineSpacing

spacing size between grid lines

LineWidth

thickness of the lines in screen space

Color

color of the lines

DepthPriority

drawing depth priority

PDI

drawing interface

Transform

transform applied to LocalFrame. Pass as Identity() if you have world frame.

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