From 208700ce41432ec4d7b396c82b532c48d38c4a56 Mon Sep 17 00:00:00 2001 From: Jonathan Nicholl Date: Fri, 24 Feb 2023 15:03:35 -0500 Subject: [PATCH] Update documentation for Mesh and MeshInstance3D Add missing descriptions for Mesh's virtual methods, and MeshInstance3D's methods relating to blend shapes. Slight tweaks to several MeshInstance3D method descriptions. --- doc/classes/Mesh.xml | 14 ++++++++++++++ doc/classes/MeshInstance3D.xml | 13 +++++++++---- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/doc/classes/Mesh.xml b/doc/classes/Mesh.xml index 3063e76c656..b9e6854bbf4 100644 --- a/doc/classes/Mesh.xml +++ b/doc/classes/Mesh.xml @@ -16,22 +16,26 @@ + Virtual method to override the [AABB] for a custom class extending [Mesh]. + Virtual method to override the number of blend shapes for a custom class extending [Mesh]. + Virtual method to override the retrieval of blend shape names for a custom class extending [Mesh]. + Virtual method to override the surface count for a custom class extending [Mesh]. @@ -39,54 +43,63 @@ + Virtual method to override the names of blend shapes for a custom class extending [Mesh]. + Virtual method to override the surface array index length for a custom class extending [Mesh]. + Virtual method to override the surface array length for a custom class extending [Mesh]. + Virtual method to override the surface arrays for a custom class extending [Mesh]. + Virtual method to override the blend shape arrays for a custom class extending [Mesh]. + Virtual method to override the surface format for a custom class extending [Mesh]. + Virtual method to override the surface LODs for a custom class extending [Mesh]. + Virtual method to override the surface material for a custom class extending [Mesh]. + Virtual method to override the surface primitive type for a custom class extending [Mesh]. @@ -94,6 +107,7 @@ + Virtual method to override the setting of a [param material] at the given [param index] for a custom class extending [Mesh]. diff --git a/doc/classes/MeshInstance3D.xml b/doc/classes/MeshInstance3D.xml index 618503c8df3..2ee3b4cb0ce 100644 --- a/doc/classes/MeshInstance3D.xml +++ b/doc/classes/MeshInstance3D.xml @@ -45,31 +45,35 @@ + Returns the index of the blend shape with the given [param name]. Returns [code]-1[/code] if no blend shape with this name exists, including when [member mesh] is [code]null[/code]. - Returns the [Material] that will be used by the [Mesh] when drawing. This can return the [member GeometryInstance3D.material_override], the surface override [Material] defined in this [MeshInstance3D], or the surface [Material] defined in the [Mesh]. For example, if [member GeometryInstance3D.material_override] is used, all surfaces will return the override material. + Returns the [Material] that will be used by the [Mesh] when drawing. This can return the [member GeometryInstance3D.material_override], the surface override [Material] defined in this [MeshInstance3D], or the surface [Material] defined in the [member mesh]. For example, if [member GeometryInstance3D.material_override] is used, all surfaces will return the override material. + Returns [code]null[/code] if no material is active, including when [member mesh] is [code]null[/code]. + Returns the number of blend shapes available. Produces an error if [member mesh] is [code]null[/code]. + Returns the value of the blend shape at the given [param blend_shape_idx]. Returns [code]0.0[/code] and produces an error if [member mesh] is [code]null[/code] or doesn't have a blend shape at that index. - Returns the override [Material] for the specified surface of the [Mesh] resource. + Returns the override [Material] for the specified [param surface] of the [Mesh] resource. @@ -83,6 +87,7 @@ + Sets the value of the blend shape at [param blend_shape_idx] to [param value]. Produces an error if [member mesh] is [code]null[/code] or doesn't have a blend shape at that index. @@ -90,7 +95,7 @@ - Sets the override [Material] for the specified surface of the [Mesh] resource. This material is associated with this [MeshInstance3D] rather than with the [Mesh] resource. + Sets the override [param material] for the specified [param surface] of the [Mesh] resource. This material is associated with this [MeshInstance3D] rather than with [member mesh]. @@ -102,7 +107,7 @@ [NodePath] to the [Skeleton3D] associated with the instance. - Sets the skin to be used by this instance. + The [Skin] to be used by this instance.