46 lines
2.5 KiB
XML
46 lines
2.5 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="GLTFMesh" inherits="Resource" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
|
|
<brief_description>
|
|
GLTFMesh represents a GLTF mesh.
|
|
</brief_description>
|
|
<description>
|
|
GLTFMesh handles 3D mesh data imported from GLTF files. It includes properties for blend channels, blend weights, instance materials, and the mesh itself.
|
|
</description>
|
|
<tutorials>
|
|
<link title="Runtime file loading and saving">$DOCS_URL/tutorials/io/runtime_file_loading_and_saving.html</link>
|
|
</tutorials>
|
|
<methods>
|
|
<method name="get_additional_data">
|
|
<return type="Variant" />
|
|
<param index="0" name="extension_name" type="StringName" />
|
|
<description>
|
|
Gets additional arbitrary data in this [GLTFMesh] instance. This can be used to keep per-node state data in [GLTFDocumentExtension] classes, which is important because they are stateless.
|
|
The argument should be the [GLTFDocumentExtension] name (does not have to match the extension name in the GLTF file), and the return value can be anything you set. If nothing was set, the return value is null.
|
|
</description>
|
|
</method>
|
|
<method name="set_additional_data">
|
|
<return type="void" />
|
|
<param index="0" name="extension_name" type="StringName" />
|
|
<param index="1" name="additional_data" type="Variant" />
|
|
<description>
|
|
Sets additional arbitrary data in this [GLTFMesh] instance. This can be used to keep per-node state data in [GLTFDocumentExtension] classes, which is important because they are stateless.
|
|
The first argument should be the [GLTFDocumentExtension] name (does not have to match the extension name in the GLTF file), and the second argument can be anything you want.
|
|
</description>
|
|
</method>
|
|
</methods>
|
|
<members>
|
|
<member name="blend_weights" type="PackedFloat32Array" setter="set_blend_weights" getter="get_blend_weights" default="PackedFloat32Array()">
|
|
An array of floats representing the blend weights of the mesh.
|
|
</member>
|
|
<member name="instance_materials" type="Material[]" setter="set_instance_materials" getter="get_instance_materials" default="[]">
|
|
An array of Material objects representing the materials used in the mesh.
|
|
</member>
|
|
<member name="mesh" type="ImporterMesh" setter="set_mesh" getter="get_mesh">
|
|
The [ImporterMesh] object representing the mesh itself.
|
|
</member>
|
|
<member name="original_name" type="String" setter="set_original_name" getter="get_original_name" default="""">
|
|
The original name of the mesh.
|
|
</member>
|
|
</members>
|
|
</class>
|