Skip to content

Instantly share code, notes, and snippets.

@DavidLyhedDanielsson
DavidLyhedDanielsson / unreal_export.py
Created September 7, 2023 12:09
Unreal Engine 5 static mesh gltf exporter
import unreal
outputDir = SET THIS
exportOptions = unreal.GLTFExportOptions()
exportOptions.adjust_normalmaps = True
selectedActors = set()
class_paths = unreal.Array(unreal.TopLevelAssetPath)
class_paths.append(unreal.TopLevelAssetPath("/Script/Engine", "StaticMesh"))