:github_url: hide .. _class_SkinReference: SkinReference ============= **Hereda:** :ref:`RefCounted` **<** :ref:`Object` Un objeto contenedor con conteo de referencias para un RID de esqueleto usado en el :ref:`RenderingServer`. .. rst-class:: classref-introduction-group Descripción ---------------------- 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 Métodos -------------- .. 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 Descripciones de Métodos ------------------------------------------------ .. _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 (Normalmente, este método debería ser sobreescrito por el usuario para que tenga algún efecto.)` .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)` .. |const| replace:: :abbr:`const (Este método no tiene efectos secundarios. No modifica ninguna de las variables miembro de la instancia.)` .. |vararg| replace:: :abbr:`vararg (Este método permite agregar cualquier número de argumentos después de los descritos aquí.)` .. |constructor| replace:: :abbr:`constructor (Este método se utiliza para construir un tipo.)` .. |static| replace:: :abbr:`static (Este método no necesita una instancia para ser llamado, por lo que puede llamarse directamente utilizando el nombre de la clase.)` .. |operator| replace:: :abbr:`operator (Este método describe un operador válido para usar con este tipo como operando izquierdo.)` .. |bitfield| replace:: :abbr:`BitField (Este valor es un entero compuesto como una máscara de bits de las siguientes banderas.)` .. |void| replace:: :abbr:`void (Sin valor de retorno.)`