private void DrawClipsUsed() { EnsureUsedClipsCached(); usedClipsFoldout.SetTo(EditorGUILayout.Foldout(usedClipsFoldout, "Clips used in the animation player")); if (!usedClipsFoldout) { return; } EditorGUI.indentLevel++; foreach (var clip in animationClipsUsed) { using (new EditorGUILayout.HorizontalScope()) { EditorUtilities.ObjectField(clip); clipUsagesFoldedOut[clip] = EditorGUILayout.Foldout(clipUsagesFoldedOut[clip], ""); } if (clipUsagesFoldedOut[clip]) { using (new EditorGUI.IndentLevelScope()) { foreach (var state in clipsUsedInStates[clip]) { EditorGUILayout.LabelField("Used in state " + state.Name); } } } } EditorGUI.indentLevel--; }
private void DrawReferencedModels() { usedModelsFoldout.SetTo(EditorGUILayout.Foldout(usedModelsFoldout, "Models used in the animation player")); if (!usedModelsFoldout) { return; } EditorGUI.indentLevel++; foreach (var model in modelsUsed) { EditorUtilities.ObjectField(model); } EditorGUI.indentLevel--; }
private void DrawClipsUsed() { EnsureUsedClipsCached(); usedClipsFoldout.SetTo(EditorGUILayout.Foldout(usedClipsFoldout, "Clips used in the animation player")); if (!usedClipsFoldout) { return; } EditorGUI.indentLevel++; foreach (var clip in animationClipsUsed) { EditorUtilities.ObjectField(clip); } EditorGUI.indentLevel--; }