FSpriteAssetInitParameters

Choose your operating system:

Windows

macOS

Linux

References

Module

Paper2D

Header

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

Include

#include "SpriteEditorOnlyTypes.h"

Syntax

USTRUCT()
struct FSpriteAssetInitParameters

Variables

Name Description

Public variable

TArray< UTextur...

 

AdditionalTextures

Additional textures to use.

Public variable

UMaterialInterf...

 

AlternateMaterialOverride

The material to override the alternate (opaque) value with, if set.

Public variable

bool

 

bOverridePixelsPerUnrealUnit

Should we apply the PixelsPerUnrealUnit, or leave the value as it was.

Public variable

UMaterialInterf...

 

DefaultMaterialOverride

The material to override the default value with, if set.

Public variable

FIntPoint

 

Dimension

The dimension of the subregion within the texture (in pixels)

Public variable

FIntPoint

 

Offset

The offset within the texture (in pixels)

Public variable

float

 

PixelsPerUnrealUnit

The scaling factor between pixels and Unreal units (cm) to use (e.g., 0.64 would make a 64 pixel wide sprite take up 100 cm)

Public variable

UTexture2D *...

 

Texture

The texture to use.

Constructors

Name Description

Public function

FSpriteAssetInitParameters()

Functions

Name Description

Public function

void

 

SetPixelsPerUnrealUnit

(
    float NewPixelsPerUU
)

Public function

void

 

SetTextureAndFill

(
    UTexture2D* InTexture
)

Set the texture and the offset/dimension to fully match the specified texture.