Path: blob/master/modules/gltf/doc_classes/GLTFMesh.xml
10279 views
<?xml version="1.0" encoding="UTF-8" ?>1<class name="GLTFMesh" inherits="Resource" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">2<brief_description>3GLTFMesh represents a glTF mesh.4</brief_description>5<description>6GLTFMesh handles 3D mesh data imported from glTF files. It includes properties for blend channels, blend weights, instance materials, and the mesh itself.7</description>8<tutorials>9<link title="Runtime file loading and saving">$DOCS_URL/tutorials/io/runtime_file_loading_and_saving.html</link>10</tutorials>11<methods>12<method name="get_additional_data">13<return type="Variant" />14<param index="0" name="extension_name" type="StringName" />15<description>16Gets 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.17The 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 [code]null[/code].18</description>19</method>20<method name="set_additional_data">21<return type="void" />22<param index="0" name="extension_name" type="StringName" />23<param index="1" name="additional_data" type="Variant" />24<description>25Sets 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.26The 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.27</description>28</method>29</methods>30<members>31<member name="blend_weights" type="PackedFloat32Array" setter="set_blend_weights" getter="get_blend_weights" default="PackedFloat32Array()">32An array of floats representing the blend weights of the mesh.33</member>34<member name="instance_materials" type="Material[]" setter="set_instance_materials" getter="get_instance_materials" default="[]">35An array of Material objects representing the materials used in the mesh.36</member>37<member name="mesh" type="ImporterMesh" setter="set_mesh" getter="get_mesh">38The [ImporterMesh] object representing the mesh itself.39</member>40<member name="original_name" type="String" setter="set_original_name" getter="get_original_name" default="""">41The original name of the mesh.42</member>43</members>44</class>454647