Module |
|
Header |
/Engine/Plugins/2D/Paper2D/Source/Paper2D/Classes/SpriteEditorOnlyTypes.h |
Include |
#include "SpriteEditorOnlyTypes.h" |
[USTRUCT](Programming/UnrealArchitecture/Reference/Structs)()
struct FSpriteAssetInitParameters
Name | Description | ||
---|---|---|---|
|
AdditionalTextures |
Additional textures to use. |
|
|
AlternateMaterialOverride |
The material to override the alternate (opaque) value with, if set. |
|
|
bOverridePixelsPerUnrealUnit |
Should we apply the PixelsPerUnrealUnit, or leave the value as it was. |
|
|
DefaultMaterialOverride |
The material to override the default value with, if set. |
|
|
Dimension |
The dimension of the subregion within the texture (in pixels) |
|
|
Offset |
The offset within the texture (in pixels) |
|
|
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) |
|
UTexture2D *... |
Texture |
The texture to use. |
Name | Description | |
---|---|---|
|
FSpriteAssetInitParameters() |
Name | Description | ||
---|---|---|---|
|
SetPixelsPerUnrealUnit ( |
||
|
SetTextureAndFill ( |
Set the texture and the offset/dimension to fully match the specified texture. |