Skip to content

Commit e70d82a

Browse files
update
NetworkAnimator not pointing to an animator within awake now just logs a warning as opposed to an error.
1 parent 6289aba commit e70d82a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,10 @@ protected virtual void Awake()
768768
if (!m_Animator)
769769
{
770770
#if !UNITY_EDITOR
771-
Debug.LogError($"{nameof(NetworkAnimator)} {name} does not have an {nameof(UnityEngine.Animator)} assigned to it. The {nameof(NetworkAnimator)} will not initialize properly.");
771+
if (!m_Animator)
772+
{
773+
Debug.LogWarning($"{nameof(NetworkAnimator)} {name} does not have an {nameof(UnityEngine.Animator)} assigned to it. The {nameof(NetworkAnimator)} will not initialize properly.");
774+
}
772775
#endif
773776
return;
774777
}

0 commit comments

Comments
 (0)