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

#include <ArticyImportCommandlet.h>

Inheritance diagram for UArticyImportCommandlet:

Static Protected Member Functions

static FString ResolveArticyDirectory (const TArray< FString > &Tokens, const TArray< FString > &Switches)

Detailed Description

UArticyImportCommandlet is a custom commandlet class used for importing Articy data.

Member Function Documentation

◆ ResolveArticyDirectory()

FString UArticyImportCommandlet::ResolveArticyDirectory ( const TArray< FString > & Tokens,
const TArray< FString > & Switches )
staticprotected

Resolves the Articy content directory to use for import/regeneration.

First, checks for a command-line override in the form: -ArticyDir=/Game/Path/To/ArticyContent If present, returns everything after the '='. Otherwise, it scans the project's Content/ folder for the first .articyue file it finds, converts that file's parent directory into a virtual '/Game/...' path, and returns it. If neither approach yields a directory, returns empty.

Parameters
TokensThe parsed command-line tokens (unused).
SwitchesThe parsed command-line switches to inspect for 'ArticyDir=' override.
Returns
A valid Unreal virtual path (e.g. '/Game/Articy/Export') or an empty string on failure.

Resolves the Articy content directory to use for import/regeneration.

First, checks for a command-line override in the form: -ArticyDir=/Game/Path/To/ArticyContent If present, returns everything after the '='. Otherwise, it scans the project's Content/ folder for the first .articyue file it finds, converts that file's parent directory into a virtual "/Game/_" path, and returns it. If neither approach yields a directory, returns empty.

Parameters
TokensThe parsed command-line tokens (not used here).
SwitchesThe parsed command-line switches to inspect for "ArticyDir=" override.
Returns
A valid Unreal virtual path (e.g. "/Game/Articy/Export") or an empty string on failure.

The documentation for this class was generated from the following files: