Closed jeffgamedev closed 8 months ago
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
This was migrated to the public repository in #2872 and will be included in the v1.9.0 update. Thank you for your submission!
This PR removes the hard RequireComponent of Animator from component NetworkAnimator. The reason is that NetworkAnimator does not in fact require an Animator object to be on the game object, and functions just as well accessing a child game object's Animator.
The NetworkAnimator requires a reference to any Animator, not an Animator on the same game object. In the current implementation, this requires my Player game object to have an unused Animator attached due to the component being required.
Changelog
[RequireComponent(typeof(Animator))]
on NetworkAnimator component.Suggestions for the future
Allow NetworkAnimator to throw 1 warning if the Animator reference is empty instead of constantly throwing errors.