:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/stag-toolkit/sphinx/gen/gdscript/StagImportUtils.xml. .. _class_StagImportUtils: StagImportUtils =============== **Experimental:** This class may be changed or removed in future versions. **Inherits:** ``RefCounted`` Utility functions for use in scene importers. .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +---------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |void| | :ref:`fix_owner`\ (\ node\: ``Node``, new_owner\: ``Node``\ ) |static| | +---------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Array`\[``CollisionShape3D``\] | :ref:`generate_convex_hull`\ (\ mesh\: ``MeshInstance3D``, parent\: ``Node``, simplify\: ``bool`` = false\ ) |static| | +---------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | ``int`` | :ref:`get_lod_suffix`\ (\ input_string\: ``String``\ ) |static| | +---------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Array`\[``MeshInstance3D``\] | :ref:`fetch_meshes`\ (\ obj\: ``Node``, meshes\: :ref:`Array`\[``MeshInstance3D``\] = []\ ) |static| | +---------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_StagImportUtils_method_fix_owner: .. rst-class:: classref-method |void| **fix_owner**\ (\ node\: ``Node``, new_owner\: ``Node``\ ) |static| :ref:`🔗` Recursively sets scene ownership of the given node and all of its children, to the new owner. .. rst-class:: classref-item-separator ---- .. _class_StagImportUtils_method_generate_convex_hull: .. rst-class:: classref-method :ref:`Array`\[``CollisionShape3D``\] **generate_convex_hull**\ (\ mesh\: ``MeshInstance3D``, parent\: ``Node``, simplify\: ``bool`` = false\ ) |static| :ref:`🔗` 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. .. rst-class:: classref-item-separator ---- .. _class_StagImportUtils_method_get_lod_suffix: .. rst-class:: classref-method ``int`` **get_lod_suffix**\ (\ input_string\: ``String``\ ) |static| :ref:`🔗` Attempts to find an LOD suffix in the given string, returning -1 if not found. .. rst-class:: classref-item-separator ---- .. _class_StagImportUtils_method_fetch_meshes: .. rst-class:: classref-method :ref:`Array`\[``MeshInstance3D``\] **fetch_meshes**\ (\ obj\: ``Node``, meshes\: :ref:`Array`\[``MeshInstance3D``\] = []\ ) |static| :ref:`🔗` Recursively iterates over the given node and its children, returning a list of all MeshInstance3D nodes. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)` .. |void| replace:: :abbr:`void (No return value.)`