Class SkinReference
- Namespace
- Godot
- Assembly
- GodotSharp.dll
An internal object containing a mapping from a Skin used within the context of a particular MeshInstance3D to refer to the skeleton's Rid in the RenderingServer.
See also GetSkinReference() and InstanceAttachSkeleton(Rid, Rid).
Note that despite the similar naming, the skeleton RID used in the RenderingServer does not have a direct one-to-one correspondence to a Skeleton3D node.
In particular, a Skeleton3D node with no MeshInstance3D children may be unknown to the RenderingServer.
On the other hand, a Skeleton3D with multiple MeshInstance3D nodes which each have different Skin objects may have multiple SkinReference instances (and hence, multiple skeleton Rids).
public class SkinReference : RefCounted, IDisposable
- Inheritance
-
SkinReference
- Implements
- Inherited Members
Methods
GetSkeleton()
Returns the Rid owned by this SkinReference, as returned by SkeletonCreate().
public Rid GetSkeleton()
Returns
GetSkin()
Returns the Skin connected to this SkinReference. In the case of MeshInstance3D with no Skin assigned, this will reference an internal default Skin owned by that MeshInstance3D.
Note that a single Skin may have more than one SkinReference in the case that it is shared by meshes across multiple Skeleton3D nodes.
public Skin GetSkin()
Returns
HasGodotClassMethod(in godot_string_name)
Check if the type contains a method with the given name. This method is used by Godot to check if a method exists before invoking it. Do not call or override this method.
protected override bool HasGodotClassMethod(in godot_string_name method)
Parameters
method
godot_string_nameName of the method to check for.
Returns
HasGodotClassSignal(in godot_string_name)
Check if the type contains a signal with the given name. This method is used by Godot to check if a signal exists before raising it. Do not call or override this method.
protected override bool HasGodotClassSignal(in godot_string_name signal)
Parameters
signal
godot_string_nameName of the signal to check for.
Returns
InvokeGodotClassMethod(in godot_string_name, NativeVariantPtrArgs, out godot_variant)
Invokes the method with the given name, using the given arguments. This method is used by Godot to invoke methods from the engine side. Do not call or override this method.
protected override bool InvokeGodotClassMethod(in godot_string_name method, NativeVariantPtrArgs args, out godot_variant ret)
Parameters
method
godot_string_nameName of the method to invoke.
args
NativeVariantPtrArgsArguments to use with the invoked method.
ret
godot_variantValue returned by the invoked method.