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

SpriteDataAccessExtensions.SetBoneWeights

Switch to Manual
public static void SetBoneWeights (Sprite sprite, NativeArray<BoneWeight> src);

Parameters

srcThe list of BoneWeight for this Sprite. The array must be disposed of by the caller.

Description

Sets the BoneWeight for this Sprite. The length of the input array must match the number of vertices.

This is usually called as part of the Sprite's post process to imbue it with bind pose data.