From 57432d94c9f17c72a39a1e1abe68d0c19883df08 Mon Sep 17 00:00:00 2001 From: vis2k Date: Tue, 9 Mar 2021 14:05:11 +0800 Subject: [PATCH] NetworkVisibility: improve obsolete message --- Assets/Mirror/Runtime/NetworkVisibility.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Mirror/Runtime/NetworkVisibility.cs b/Assets/Mirror/Runtime/NetworkVisibility.cs index 380222069..03b8899cc 100644 --- a/Assets/Mirror/Runtime/NetworkVisibility.cs +++ b/Assets/Mirror/Runtime/NetworkVisibility.cs @@ -16,7 +16,7 @@ namespace Mirror public static class NetworkVisibilityObsoleteMessage { // obsolete message in one place. show them everywhere. - public const string Message = "Per-NetworkIdentity Interest Management is being replaced by global Interest Management.\n\nPlease remove Proximity checkers from NetworkIdentity prefabs and add one global InterestManagement component to your NetworkManager instead. See our Benchmark example and our Mirror/Components/InterestManagement for available implementations.\n\nIf you need to port a custom solution, move your code into a new class that inherits from InterestManagement and add one global update method instead of using NetworkBehaviour.Update.\n\nDon't panic. The whole change mostly moved code from NetworkVisibility components into one global place on NetworkManager. Allows for Spatial Hashing which is ~30x faster.\n\n(╯°□°)╯︵ ┻━┻"; + public const string Message = "Per-NetworkIdentity Interest Management is being replaced by global Interest Management.\n\nWe already converted some components to the new system. For those, please remove Proximity checkers from NetworkIdentity prefabs and add one global InterestManagement component to your NetworkManager instead. If we didn't convert this one yet, then simply wait. See our Benchmark example and our Mirror/Components/InterestManagement for available implementations.\n\nIf you need to port a custom solution, move your code into a new class that inherits from InterestManagement and add one global update method instead of using NetworkBehaviour.Update.\n\nDon't panic. The whole change mostly moved code from NetworkVisibility components into one global place on NetworkManager. Allows for Spatial Hashing which is ~30x faster.\n\n(╯°□°)╯︵ ┻━┻"; } [Obsolete(NetworkVisibilityObsoleteMessage.Message)]