private static void LogDescriptionOfStates(MenuCommand command) { var animancer = command.context as AnimancerComponent; var message = new StringBuilder(); message.Append(animancer.ToString()); if (animancer.IsPlayableInitialised) { message.Append(":\n"); animancer.Playable.AppendDescription(message); } else { message.Append(": Playable is not initialised."); } AnimancerEditorUtilities.AppendNonCriticalIssues(message); Debug.Log(message, animancer); }