From 1d5c8b6f87a5b215a1dbefb7d621d0d28626300b Mon Sep 17 00:00:00 2001 From: MrGadget <9826063+MrGadget1024@users.noreply.github.com> Date: Wed, 7 Feb 2024 17:40:11 -0500 Subject: [PATCH] feat(NetworkAnimator): Default Sync Direction = Client To Server - This is done in Reset so Network Behaviour isn't effected. - This will not change NA components already in place on objects / prefabs unless user manually chooses Reset in the inspector. --- Assets/Mirror/Components/NetworkAnimator.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Assets/Mirror/Components/NetworkAnimator.cs b/Assets/Mirror/Components/NetworkAnimator.cs index 7510ff599..21890980d 100644 --- a/Assets/Mirror/Components/NetworkAnimator.cs +++ b/Assets/Mirror/Components/NetworkAnimator.cs @@ -93,6 +93,11 @@ void Initialize() void Awake() => Initialize(); void OnEnable() => Initialize(); + public virtual void Reset() + { + syncDirection = SyncDirection.ClientToServer; + } + void FixedUpdate() { if (!SendMessagesAllowed)