NetworkVisibility: improve obsolete message

This commit is contained in:
vis2k 2021-03-09 14:05:11 +08:00
parent d8e2f1650f
commit 57432d94c9

View File

@ -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)]