Skip to content

Commit

Permalink
Added another error message to the inspector.
Browse files Browse the repository at this point in the history
• Added an error message which is displayed if there's a missing animator controller in the Parameter Writers array.
  • Loading branch information
Nestorboy committed May 7, 2022
1 parent db6048c commit 740cd73
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@ private void DrawMessages()

if (propertyParameterWriters.arraySize < Math.Min(activeAvatarCount, 1))
EditorGUILayout.HelpBox("There are not enough animator controllers on the behaviour.\nPlease select an asset folder and apply the animator controller(s) again.", MessageType.Error);
else if (!propertyParameterWriters.GetArrayElementAtIndex(0).objectReferenceValue)
EditorGUILayout.HelpBox("There is a missing animator controller on the behaviour.\nPlease select an asset folder and apply the animator controller(s) again.", MessageType.Error);

if (propertyKeyCoords.arraySize < activeAvatarCount)
EditorGUILayout.HelpBox("There are not enough key coordinates on the behaviour.\nPlease enter the seed and apply the keys again.", MessageType.Error);
}
Expand Down

0 comments on commit 740cd73

Please sign in to comment.