NullReferenceException: Object reference not set to an instance of an object
Spine.Unity.SkeletonRenderer.LateUpdate () (at Assets/External/spine-unity/Assets/spine-unity/SkeletonRenderer.cs:699)
// CheckIfMustUpdateMaterialArray (last pushed materials vs currently parsed materials)
// Needs to check against the Working Submesh Instructions Materials instead of the cached submeshMaterials.
{
var lastPushedMaterials = this.sharedMaterials;
bool mustUpdateRendererMaterials = mustUpdateMeshStructure ||
(lastPushedMaterials.Length != workingSubmeshInstructions.Count);
if (!mustUpdateRendererMaterials) {
var workingSubmeshInstructionsItems = workingSubmeshInstructions.Items;
for (int i = 0, n = lastPushedMaterials.Length; i < n; i++) {
if (lastPushedMaterials[i].GetInstanceID() != workingSubmeshInstructionsItems[i].material.GetInstanceID()) { // Bounds check is implied above.
mustUpdateRendererMaterials = true;
break;
}
}
}
workingSubmeshInstructionsItems.material is null.