ArticyXImporter
ArticyXImporter for Unreal Engine
Loading...
Searching...
No Matches
UArticyJSONFactory Class Reference

#include <ArticyJSONFactory.h>

Inheritance diagram for UArticyJSONFactory:

Public Member Functions

 UArticyJSONFactory ()
virtual ~UArticyJSONFactory () override
virtual bool FactoryCanImport (const FString &Filename) override
virtual UClass * ResolveSupportedClass () override
virtual UObject * FactoryCreateFile (UClass *InClass, UObject *InParent, FName InName, EObjectFlags Flags, const FString &Filename, const TCHAR *Parms, FFeedbackContext *Warn, bool &bOutOperationCanceled) override
virtual bool CanReimport (UObject *Obj, TArray< FString > &OutFilenames) override
virtual void SetReimportPaths (UObject *Obj, const TArray< FString > &NewReimportPaths) override
virtual EReimportResult::Type Reimport (UObject *Obj) override

Detailed Description

Factory for importing JSON files exported from Articy:draft.

Constructor & Destructor Documentation

◆ UArticyJSONFactory()

UArticyJSONFactory::UArticyJSONFactory ( )

Constructor for UArticyJSONFactory.

Constructor for UArticyJSONFactory. Initializes the factory to import Articy JSON files.

◆ ~UArticyJSONFactory()

UArticyJSONFactory::~UArticyJSONFactory ( )
overridevirtual

Destructor for UArticyJSONFactory.

Member Function Documentation

◆ CanReimport()

bool UArticyJSONFactory::CanReimport ( UObject * Obj,
TArray< FString > & OutFilenames )
overridevirtual

Determines if the factory can reimport the specified object.

Parameters
ObjThe object to reimport.
OutFilenamesThe list of filenames for reimporting.
Returns
true if the factory can reimport the object, false otherwise.

◆ FactoryCanImport()

bool UArticyJSONFactory::FactoryCanImport ( const FString & Filename)
overridevirtual

Determines if the factory can import the specified file.

Parameters
FilenameThe name of the file to check.
Returns
true if the factory can import the file, false otherwise.

Checks if the factory can import the specified file.

Parameters
FilenameThe name of the file to check.
Returns
true if the factory can import the file, false otherwise.

◆ FactoryCreateFile()

UObject * UArticyJSONFactory::FactoryCreateFile ( UClass * InClass,
UObject * InParent,
FName InName,
EObjectFlags Flags,
const FString & Filename,
const TCHAR * Parms,
FFeedbackContext * Warn,
bool & bOutOperationCanceled )
overridevirtual

Creates an object from the specified file.

Parameters
InClassThe class to create.
InParentThe parent object.
InNameThe name of the object.
FlagsObject flags.
FilenameThe name of the file to import.
ParmsAdditional parameters.
WarnFeedback context for warnings and errors.
bOutOperationCanceledOutput flag indicating if the operation was canceled.
Returns
The created object.

◆ Reimport()

EReimportResult::Type UArticyJSONFactory::Reimport ( UObject * Obj)
overridevirtual

Reimports the specified object.

Parameters
ObjThe object to reimport.
Returns
The result of the reimport operation.

◆ ResolveSupportedClass()

UClass * UArticyJSONFactory::ResolveSupportedClass ( )
overridevirtual

Resolves the class supported by this factory.

Returns
The class supported by this factory.

◆ SetReimportPaths()

void UArticyJSONFactory::SetReimportPaths ( UObject * Obj,
const TArray< FString > & NewReimportPaths )
overridevirtual

Sets the reimport paths for the specified object.

Parameters
ObjThe object to set reimport paths for.
NewReimportPathsThe new reimport paths.

The documentation for this class was generated from the following files:
  • Source/ArticyEditor/Public/ArticyJSONFactory.h
  • Source/ArticyEditor/Private/ArticyJSONFactory.cpp