Navigation
API > API/Plugins > API/Plugins/Paper2D
References
| Module | Paper2D |
| Header | /Engine/Plugins/2D/Paper2D/Source/Paper2D/Classes/SpriteEditorOnlyTypes.h |
| Include | #include "SpriteEditorOnlyTypes.h" |
Syntax
USTRUCT&40;&41;
struct FSpriteAssetInitParameters
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< UTexture * > | AdditionalTextures | Additional textures to use. | |
| UMaterialInterface * | AlternateMaterialOverride | The material to override the alternate (opaque) value with, if set. | |
| bool | bOverridePixelsPerUnrealUnit | Should we apply the PixelsPerUnrealUnit, or leave the value as it was. | |
| UMaterialInterface * | DefaultMaterialOverride | The material to override the default value with, if set. | |
| FIntPoint | Dimension | The dimension of the subregion within the texture (in pixels) | |
| FIntPoint | 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. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | SetPixelsPerUnrealUnit
(
float NewPixelsPerUU |
||
| void | SetTextureAndFill
(
UTexture2D* InTexture |
Set the texture and the offset/dimension to fully match the specified texture. |