PAPER2FSpriteGeometryCollection::Triangulate

Takes all polygon shapes and generates a list of triangles from them.

Windows
MacOS
Linux

References

Module

Paper2D

Header

/Engine/Plugins/2D/Paper2D/Source/Paper2D/Classes/SpriteEditorOnlyTypes.h

Include

#include "SpriteEditorOnlyTypes.h"

Syntax

void Triangulate
(
    TArray< FVector2D > & Target,
    bool bIncludeBoxes
) const

Remarks

Takes all polygon shapes and generates a list of triangles from them. Output will contain a multiple of 3 points, each set is one triangle. Always ignores circles, but can include or ignore boxes based on bIncludeBoxes.

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