UPaperSpriteFactory

Factory for sprites

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Paper2DEditor

Header

/Engine/Plugins/2D/Paper2D/Source/Paper2DEditor/Classes/PaperSpriteFactory.h

Include

#include "PaperSpriteFactory.h"

Syntax

UCLASS()
class UPaperSpriteFactory : public UFactory

Remarks

Factory for sprites

Variables

Name Description

Public variable

bool

 

bUseSourceRegion

Set bUseSourceRegion to get it to use/set initial sourceUV and dimensions.

Public variable

FIntPoint

 

InitialSourceDimension

Public variable

FIntPoint

 

InitialSourceUV

Public variable

UTexture2D *...

 

InitialTexture

Initial texture to create the sprite from (Can be nullptr)

Constructors

Name Description

Public function

UPaperSpriteFactory

(
    const FObjectInitializer& ObjectIn...
)

Overridden from UFactory

Name Description

Public function Virtual

bool

 

ConfigureProperties()

Opens a dialog to configure the factory properties.

Public function Virtual

UObject *...

 

FactoryCreateNew

(
    UClass* InClass,
    UObject* InParent,
    FName InName,
    EObjectFlags Flags,
    UObject* Context,
    FFeedbackContext* Warn
)

Create a new object by class.