Skip to content

Commit eb9c94e

Browse files
fix
Remove the error log when a state has no transition information associated with it.
1 parent 9728a78 commit eb9c94e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

com.unity.netcode.gameobjects/Components/NetworkAnimator.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,10 +1226,11 @@ internal void UpdateAnimationState(AnimationState animationState)
12261226
NetworkLog.LogError($"[DestinationState To Transition Info] Layer ({animationState.Layer}) sub-table does not contain destination state ({animationState.DestinationStateHash})!");
12271227
}
12281228
}
1229-
else if (NetworkManager.LogLevel == LogLevel.Developer)
1230-
{
1231-
NetworkLog.LogError($"[DestinationState To Transition Info] Layer ({animationState.Layer}) does not exist!");
1232-
}
1229+
// For reference, it is valid to have no transition information
1230+
//else if (NetworkManager.LogLevel == LogLevel.Developer)
1231+
//{
1232+
// NetworkLog.LogError($"[DestinationState To Transition Info] Layer ({animationState.Layer}) does not exist!");
1233+
//}
12331234
}
12341235
else if (animationState.Transition && animationState.CrossFade)
12351236
{

0 commit comments

Comments
 (0)