Enum GltfDocument.RootNodeModeEnum
- Namespace
- Godot
- Assembly
- GodotSharp.dll
public enum GltfDocument.RootNodeModeEnum : long
Fields
KeepRoot = 1
Treat the Godot scene's root node as the root node of the glTF file, but do not mark it as anything special. An extra root node will be generated when importing into Godot. This uses only vanilla glTF features. This is equivalent to the behavior in Godot 4.1 and earlier.
MultiRoot = 2
Treat the Godot scene's root node as the name of the glTF scene, and add all of its children as root nodes of the glTF file. This uses only vanilla glTF features. This avoids an extra root node, but only the name of the Godot scene's root node will be preserved, as it will not be saved as a node.
SingleRoot = 0
Treat the Godot scene's root node as the root node of the glTF file, and mark it as the single root node via the
GODOT_single_root
glTF extension. This will be parsed the same as KeepRoot if the implementation does not supportGODOT_single_root
.