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