0.2.0-dev Download ZIP
30 lines ·1.9 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="SkinReference" inherits="RefCounted" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | A reference-counted holder object for a skeleton RID used in the [RenderingServer]. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | 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. |
| 8 | See also [method MeshInstance3D.get_skin_reference] and [method RenderingServer.instance_attach_skeleton]. |
| 9 | 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. |
| 10 | In particular, a [Skeleton3D] node with no [MeshInstance3D] children may be unknown to the [RenderingServer]. |
| 11 | On the other hand, a [Skeleton3D] with multiple [MeshInstance3D] nodes which each have different [member MeshInstance3D.skin] objects may have multiple SkinReference instances (and hence, multiple skeleton [RID]s). |
| 12 | </description> |
| 13 | <tutorials> |
| 14 | </tutorials> |
| 15 | <methods> |
| 16 | <method name="get_skeleton" qualifiers="const"> |
| 17 | <return type="RID" /> |
| 18 | <description> |
| 19 | Returns the [RID] owned by this SkinReference, as returned by [method RenderingServer.skeleton_create]. |
| 20 | </description> |
| 21 | </method> |
| 22 | <method name="get_skin" qualifiers="const"> |
| 23 | <return type="Skin" /> |
| 24 | <description> |
| 25 | Returns the [Skin] connected to this SkinReference. In the case of [MeshInstance3D] with no [member MeshInstance3D.skin] assigned, this will reference an internal default [Skin] owned by that [MeshInstance3D]. |
| 26 | Note that a single [Skin] may have more than one [SkinReference] in the case that it is shared by meshes across multiple [Skeleton3D] nodes. |
| 27 | </description> |
| 28 | </method> |
| 29 | </methods> |
| 30 | </class> |