GLTFMesh
GLTFMesh represents a GLTF mesh.
GLTFMesh.swift:17class GLTFMesh
GLTFMesh handles 3D mesh data imported from GLTF files. It includes properties for blend channels, blend weights, instance materials, and the mesh itself.
Superclasses
class Resource
Base class for serializable objects.
Citizens in SwiftGodot
Conformances
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol Identifiable<ID>
A class of types whose instances hold the value of an entity with stable identity.
protocol VariantRepresentable
Types that conform to VariantRepresentable can be stored directly in
Variant
with no conversion. These include all of the Variant types from Godot (for exampleGString
,Rect
,Plane
), Godot objects (those that subclass SwiftGodot.Object) as well as the built-in Swift types UInt8, Int64 and Double.protocol VariantStorable
Types that conform to VariantStorable can be stored in a Variant and can be extracted back out of a Variant.
Type members
Instance members
var blendWeights: PackedFloat32Array
An array of floats representing the blend weights of the mesh.
var instanceMaterials: ObjectCollection<Material>
An array of Material objects representing the materials used in the mesh.
var mesh: ImporterMesh?
The
ImporterMesh
object representing the mesh itself.var originalName: String
The original name of the mesh.
func getAdditionalData(extensionName: StringName
) -> Variant Gets additional arbitrary data in this
GLTFMesh
instance. This can be used to keep per-node state data inGLTFDocumentExtension
classes, which is important because they are stateless.func setAdditionalData(extensionName: StringName, additionalData: Variant
) Sets additional arbitrary data in this
GLTFMesh
instance. This can be used to keep per-node state data inGLTFDocumentExtension
classes, which is important because they are stateless.