PAPER2FPaperFlipbookHelpers::ExtractFlipbooksFromSprites

Try and best guess split up the sprites into multiple flipbooks based on names Numbers are naturally sorted Eg.

Windows
MacOS
Linux

References

Module

Paper2DEditor

Header

/Engine/Plugins/2D/Paper2D/Source/Paper2DEditor/Public/PaperFlipbookHelpers.h

Include

#include "PaperFlipbookHelpers.h"

Syntax

static void ExtractFlipbooksFromSprites
(
    TMap< FString, TArray< UPaperSprite * > > & OutSpriteFlipbookMap,
    const TArray< UPaperSprite * > & Sprites,
    const TArray< FString > & SpriteNames
)

Remarks

Try and best guess split up the sprites into multiple flipbooks based on names Numbers are naturally sorted Eg. Walk01, Walk02, Run01, Run02 -> Walk (Walk01, Walk02), Run (Run01, Run02) if autoGroup is true All ungrouped sprites are stored in one flipbook Expected input: Sprites array contains valid sprites SpriteNames contains an array of sprite names (parallel to Sprites) or, an empty array if Sprite->GetName() is to be used.

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