Navigation
API > API/Plugins > API/Plugins/Paper2D
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UPaperSpriteAtlas
References
| Module | Paper2D |
| Header | /Engine/Plugins/2D/Paper2D/Source/Paper2D/Classes/PaperSpriteAtlas.h |
| Include | #include "PaperSpriteAtlas.h" |
Syntax
UCLASS&40;MinimalAPI, BlueprintType, Experimental, Meta&61;&40;DisplayThumbnail&61;"true"&41;&41;
class UPaperSpriteAtlas : public UObject
Remarks
Groups together a set of sprites that will try to share the same texture atlas (allowing them to be combined into a single draw call)
Variables
| Type | Name | Description | |
|---|---|---|---|
| FString | AtlasDescription | Description of this atlas, which shows up in the content browser tooltip. | |
| FGuid | AtlasGUID | The GUID of the atlas group, used to match up sprites that belong to this group even thru atlas renames. | |
| TArray< FPaperSpriteAtlasSlot > | AtlasSlots | Slots in the atlas. | |
| bool | bRebuildAtlas | Slots in the atlas. | |
| int32 | BuiltHeight | ||
| int32 | BuiltPadding | ||
| int32 | BuiltWidth | Values used when building this atlas. | |
| TEnumAsByte< TextureCompressionSettings > | CompressionSettings | Compression settings to use on atlas texture. | |
| TEnumAsByte< TextureFilter > | Filter | Texture filtering mode when sampling these textures. | |
| TArray< TObjectPtr< UTexture > > | GeneratedTextures | List of generated atlas textures. | |
| int32 | MaxHeight | Maximum atlas page height (single pages might be smaller) | |
| int32 | MaxWidth | Maximum atlas page width (single pages might be smaller) | |
| int32 | MipCount | Maximum atlas page height (single pages might be smaller) | |
| int32 | NumIncrementalBuilds | Track the number of incremental builds. | |
| int32 | Padding | The number of pixels of padding. | |
| EPaperSpriteAtlasPadding | PaddingType | The type of padding performed on this atlas. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UPaperSpriteAtlas
(
const FObjectInitializer& ObjectInitializer |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | GetAssetRegistryTags
(
TArray< FAssetRegistryTag >& OutTags |
Gathers a list of asset registry searchable tags which are name/value pairs with some type information This only needs to be implemented for asset objects | |
| void | PostDuplicate
(
bool bDuplicateForPIE |
Called after duplication & serialization and before PostLoad. | |
| void | Called after the C++ constructor and after the properties have been initialized, including those loaded from config. |