Experimental: this API is experimental and might be changed or removed in the future.

SpriteBone

struct in UnityEngine.Experimental.U2D

Cambiar al Manual

Descripción

A struct that holds a rich set of information that describes the bind pose of this Sprite.

Most importantly this struct describes the hierarchy and various other spatial relationships between the bones.

Variables

lengthThe length of the bone. This is important for the leaf bones to describe their length without needing another bone as the terminal bone.
nameThe name of the bone. This is useful when recreating bone hierarchy at editor or runtime. You can also use this as a way of resolving the bone path when a Sprite is bound to a more complex or richer hierarchy.
parentIdThe ID of the parent of this bone.
positionThe position in local space of this bone.
rotationThe rotation of this bone in local space.