public static SpriteBone[] GetBones (Sprite sprite);

Parámetros

spriteThe sprite to get the list of SpriteBone from.

Valor de retorno

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

Descripción

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.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961