StagImportUtils¶
Experimental: This class may be changed or removed in future versions.
Inherits: RefCounted
Utility functions for use in scene importers.
Methods¶
void |
fix_owner(node: |
Array[ |
generate_convex_hull(mesh: |
|
get_lod_suffix(input_string: |
Array[ |
fetch_meshes(obj: |
Method Descriptions¶
void fix_owner(node: Node, new_owner: Node) static 🔗
Recursively sets scene ownership of the given node and all of its children, to the new owner.
Array[CollisionShape3D] generate_convex_hull(mesh: MeshInstance3D, parent: Node, simplify: bool = false) static 🔗
Generates a single convex hull for the mesh. Removes any PhysicsBodies that are children of the mesh, and instead makes the corresponding colliders children of the given parent. Returns an array of all collision objects found under the mesh, if generated.
int get_lod_suffix(input_string: String) static 🔗
Attempts to find an LOD suffix in the given string, returning -1 if not found.
Array[MeshInstance3D] fetch_meshes(obj: Node, meshes: Array[MeshInstance3D] = []) static 🔗
Recursively iterates over the given node and its children, returning a list of all MeshInstance3D nodes.