FPolyFormat

#include <PolyAsset.h>

The same asset can be represented in different formats, for example, a WaveFront .obj file with its corresponding .mtl file or a Khronos glTF file with its corresponding .glb binary data.

Summary

A format refers to a specific representation of an asset and contains all information needed to retrieve and describe this representation.

Public attributes

formatType
FString
A short string that identifies the format type of this representation.
format_complexity
Complexity stats about this representation of the asset.
resources
TArray< FPolyFile >
A list of dependencies of the root element.
root
The root of the file hierarchy.

Public attributes

formatType

FString FPolyFormat::formatType

A short string that identifies the format type of this representation.

Possible values are: FBX, GLTF, GLTF2, OBJ, and TILT.

format_complexity

FPolyFormatComplexity FPolyFormat::format_complexity

Complexity stats about this representation of the asset.

resources

TArray< FPolyFile > FPolyFormat::resources

A list of dependencies of the root element.

May include, but is not limited to, materials, textures, and shader programs.

root

FPolyFile FPolyFormat::root

The root of the file hierarchy.

This will always be populated. For some [format_types][Format.format_types] - such as TILT, which are self-contained - this is all of the data.

Other types - such as OBJ - often reference other data elements. These are contained in the resources field.