From 3db0e2d718afc5400464e7f9688e066def2b6ed5 Mon Sep 17 00:00:00 2001 From: JesusLuvsYooh Date: Mon, 22 Jan 2024 09:33:00 +0000 Subject: [PATCH] If Target null check, user friendly tweak. --- .../Components/NetworkTransform/HybridNetworkTransformV2.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Assets/Mirror/Components/NetworkTransform/HybridNetworkTransformV2.cs b/Assets/Mirror/Components/NetworkTransform/HybridNetworkTransformV2.cs index 3c63e7be3..8c02418aa 100644 --- a/Assets/Mirror/Components/NetworkTransform/HybridNetworkTransformV2.cs +++ b/Assets/Mirror/Components/NetworkTransform/HybridNetworkTransformV2.cs @@ -161,6 +161,10 @@ private void CmdRegisteredHandler(NetworkConnectionToClient sender = null) private void Awake() { + // if null target, presume user wants to sync this object + if(target == null) + target = this.transform; + InitFullHeader(); }