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

SpriteDataAccessExtensions.GetBones

マニュアルに切り替える
public static SpriteBone[] GetBones (Sprite sprite);

パラメーター

spriteThe sprite to get the list of SpriteBone from.

戻り値

SpriteBone[] An array of SpriteBone that belongs to this Sprite.

説明

Returns a list of SpriteBone in this Sprite.

SpriteBone is a richer set of information about the bind pose that this Sprite contains. It is useful for reconstructing the runtime skeleton for this Sprite and perform various other operations like resolving the bone path. It is via information in SpriteBone that the system knows if a sprite could be bound to a specific hierarchy.