UPaperTiledImporterFactory

Imports a tile map (and associated textures & tile sets) exported from Tiled ([http://www.mapeditor.org/](http://www.mapeditor.org/))

Windows
MacOS
Linux

Inheritance Hierarchy

UObjectBase

UObjectBaseUtility

UObject

UFactory

UPaperTiledImporterFactory

References

Module

PaperTiledImporter

Header

/Engine/Plugins/2D/Paper2D/Source/PaperTiledImporter/Classes/PaperTiledImporterFactory.h

Include

#include "PaperTiledImporterFactory.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)()
class UPaperTiledImporterFactory :
    public UFactory,
    public FReimportHandler

Remarks

Imports a tile map (and associated textures & tile sets) exported from Tiled (http://www.mapeditor.org/)

Constructors

Name Description

Public function

UPaperTiledImporterFactory

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Protected function

bool

 

ConvertTileSets

(
    FTileMapFromTiled& GlobalInfo,
    const FString& CurrentSourcePath,
    const FString& LongPackagePath,
    EObjectFlags Flags
)

Protected function Static

UObject *...

 

CreateNewAsset

(
    UClass* AssetClass,
    const FString& TargetPath,
    const FString& DesiredName,
    EObjectFlags Flags
)

Protected function

void

 

FinalizeTileMap

(
    FTileMapFromTiled& GlobalInfo,
    UPaperTileMap* TileMap
)

Protected function Static

UTexture2D &...

 

ImportTexture

(
    const FString& SourceFilename,
    const FString& TargetSubPath
)

Protected function

void

 

ParseGlobalInfoFromJSON

(
    TSharedPtr< FJsonObject > Tree,
    FTileMapFromTiled& OutParsedInfo,
    const FString& NameForErrors,
    bool bSilent
)

Protected function

TSharedPtr< ...

 

ParseJSON

(
    const FString& FileContents,
    const FString& NameForErrors,
    bool bSilent
)

Overridden from UFactory

Name Description

Public function Virtual

bool

 

FactoryCanImport

(
    const FString& Filename
)

Whether the specified file can be imported by this factory.

Public function Virtual

UObject *...

 

FactoryCreateText

(
    UClass* InClass,
    UObject* InParent,
    FName InName,
    EObjectFlags Flags,
    UObject* Context,
    const TCHAR* Type,
    const TCHAR*& Buffer,
    const TCHAR* BufferEnd,
    FFeedbackContext* Warn
)

Create a new object by importing it from a text buffer.

Public function Virtual Const

FText

 

GetToolTip()

Returns the tooltip text description of this factory

Overridden from FReimportHandler

Name Description

Public function Virtual

bool

 

CanReimport

(
    UObject* Obj,
    TArray< FString >& OutFilenames
)

Check to see if the handler is capable of reimporting the object

Public function Virtual Const

int32

 

GetPriority()

Get the import priority for this handler.

Public function Virtual

EReimportRes...

 

Reimport

(
    UObject* Obj
)

Attempt to reimport the specified object from its source

Public function Virtual

void

 

SetReimportPaths

(
    UObject* Obj,
    const TArray< FString >& NewReimpo...
)

Sets the reimport path(s) for the specified object

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss