unreal.GLTFImportOptions

class unreal.GLTFImportOptions(outer=None, name='None')

Bases: unreal.Object

GLTFImport Options

C++ Source:

  • Plugin: GLTFImporter

  • Module: GLTFImporter

  • File: GLTFImportOptions.h

Editor Properties: (see get_editor_property/set_editor_property)

  • generate_lightmap_u_vs (bool): [Read-Write] Generate Lightmap UVs: Generate new UV coordinates for lightmapping instead of using the highest index UV set. Turn this on to have Unreal Studio generate lightmap UV sets automatically. Turn this off to try using the highest index existing UV set (if available) as the lightmap UV set. For both cases, geometry without existing UV sets will receive an empty UV set, which will by itself not be valid for use with Lightmass.

  • import_scale (float): [Read-Write] Import Scale: Scale factor used for importing assets, by default: 100, for conversion from meters(glTF) to centimeters(Unreal default).

property generate_lightmap_u_vs

[Read-Write] Generate Lightmap UVs: Generate new UV coordinates for lightmapping instead of using the highest index UV set. Turn this on to have Unreal Studio generate lightmap UV sets automatically. Turn this off to try using the highest index existing UV set (if available) as the lightmap UV set. For both cases, geometry without existing UV sets will receive an empty UV set, which will by itself not be valid for use with Lightmass.

Type

(bool)

property import_scale

[Read-Write] Import Scale: Scale factor used for importing assets, by default: 100, for conversion from meters(glTF) to centimeters(Unreal default).

Type

(float)