From 740cd7380e2621c295c01e217dd6f3f7c77e038d Mon Sep 17 00:00:00 2001 From: Nestorboy <35258953+Nestorboy@users.noreply.github.com> Date: Sat, 7 May 2022 22:54:29 +0200 Subject: [PATCH] Added another error message to the inspector. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Added an error message which is displayed if there's a missing animator controller in the Parameter Writers array. --- .../Udon/NUSaveState/Scripts/Editor/NUSaveStateInspector.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Assets/Nessie/Udon/NUSaveState/Scripts/Editor/NUSaveStateInspector.cs b/Assets/Nessie/Udon/NUSaveState/Scripts/Editor/NUSaveStateInspector.cs index 5f0bc83..5910b1d 100644 --- a/Assets/Nessie/Udon/NUSaveState/Scripts/Editor/NUSaveStateInspector.cs +++ b/Assets/Nessie/Udon/NUSaveState/Scripts/Editor/NUSaveStateInspector.cs @@ -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); }