chore: migrate PR-2812 remove animator requirement (#2872)

* Do not require component Animator on NetworkAnimator.

* update

Adding changelog entry.

---------

Co-authored-by: jeffgamedev <jbrooks@gala.games>
Co-authored-by: Jeff Brooks <jeph.brooks@gmail.com>
This commit is contained in:
Noel Stephens 2024-04-05 12:58:23 -05:00 коммит произвёл GitHub
Родитель 5b156090ec
Коммит 3ca359d05f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
2 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -32,6 +32,7 @@ Additional documentation and release notes are available at [Multiplayer Documen
### Changed
- Changed `NetworkAnimator` no longer requires the `Animator` component to exist on the same `GameObject`. (#2872)
- Changed `NetworkTransform` to now use `NetworkTransformMessage` as opposed to named messages for NetworkTransformState updates. (#2810)
- Changed `CustomMessageManager` so it no longer attempts to register or "unregister" a null or empty string and will log an error if this condition occurs. (#2807)

Просмотреть файл

@ -164,7 +164,6 @@ namespace Unity.Netcode.Components
/// NetworkAnimator enables remote synchronization of <see cref="UnityEngine.Animator"/> state for on network objects.
/// </summary>
[AddComponentMenu("Netcode/Network Animator")]
[RequireComponent(typeof(Animator))]
public class NetworkAnimator : NetworkBehaviour, ISerializationCallbackReceiver
{
[Serializable]