Skip to content

fix: NetworkAnimator logging error when a state has no destination information #3384

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

NoelStephensUnity
Copy link
Collaborator

This PR remove the error log when a state has no transition information associated with it.

MTTB-1153

Changelog

  • Fixed: Issue where NetworkAnimator would log an error if there was no destination transition information.

Testing and Documentation

  • No tests have been added.
  • No documentation changes or additions were necessary.

Remove the error log when a state has no transition information associated with it.
@NoelStephensUnity NoelStephensUnity requested a review from a team as a code owner April 7, 2025 15:34
adding change log entry.
NetworkLog.LogError($"[DestinationState To Transition Info] Layer ({animationState.Layer}) does not exist!");
}
// For reference, it is valid to have no transition information
//else if (NetworkManager.LogLevel == LogLevel.Developer)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's maybe best to remove the commented out code and simply leave the comment?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah... I was thinking that too but wanted to keep it here until we do a full overhaul of NetworkAnimator.

@NoelStephensUnity NoelStephensUnity enabled auto-merge (squash) April 7, 2025 15:56
@NoelStephensUnity NoelStephensUnity merged commit 56a2f20 into develop Apr 7, 2025
40 checks passed
@NoelStephensUnity NoelStephensUnity deleted the fix/do-not-log-error-when-no-animator-transition-information branch April 7, 2025 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants