:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/SkinReference.xml. .. _class_SkinReference: SkinReference ============= **Inherits:** :ref:`RefCounted` **<** :ref:`Object` A reference-counted holder object for a skeleton RID used in the :ref:`RenderingServer`. .. rst-class:: classref-introduction-group Description ----------- An internal object containing a mapping from a :ref:`Skin` used within the context of a particular :ref:`MeshInstance3D` to refer to the skeleton's :ref:`RID` in the RenderingServer. See also :ref:`MeshInstance3D.get_skin_reference` and :ref:`RenderingServer.instance_attach_skeleton`. Note that despite the similar naming, the skeleton RID used in the :ref:`RenderingServer` does not have a direct one-to-one correspondence to a :ref:`Skeleton3D` node. In particular, a :ref:`Skeleton3D` node with no :ref:`MeshInstance3D` children may be unknown to the :ref:`RenderingServer`. On the other hand, a :ref:`Skeleton3D` with multiple :ref:`MeshInstance3D` nodes which each have different :ref:`MeshInstance3D.skin` objects may have multiple SkinReference instances (and hence, multiple skeleton :ref:`RID`\ s). .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +-------------------------+----------------------------------------------------------------------------+ | :ref:`RID` | :ref:`get_skeleton`\ (\ ) |const| | +-------------------------+----------------------------------------------------------------------------+ | :ref:`Skin` | :ref:`get_skin`\ (\ ) |const| | +-------------------------+----------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_SkinReference_method_get_skeleton: .. rst-class:: classref-method :ref:`RID` **get_skeleton**\ (\ ) |const| :ref:`🔗` Returns the :ref:`RID` owned by this SkinReference, as returned by :ref:`RenderingServer.skeleton_create`. .. rst-class:: classref-item-separator ---- .. _class_SkinReference_method_get_skin: .. rst-class:: classref-method :ref:`Skin` **get_skin**\ (\ ) |const| :ref:`🔗` Returns the :ref:`Skin` connected to this SkinReference. In the case of :ref:`MeshInstance3D` with no :ref:`MeshInstance3D.skin` assigned, this will reference an internal default :ref:`Skin` owned by that :ref:`MeshInstance3D`. Note that a single :ref:`Skin` may have more than one **SkinReference** in the case that it is shared by meshes across multiple :ref:`Skeleton3D` nodes. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)` .. |void| replace:: :abbr:`void (No return value.)`