From 228cf826ec1772d23c50ea0e0579cb40fd9f68c9 Mon Sep 17 00:00:00 2001 From: JesusLuvsYooh Date: Mon, 11 Nov 2024 11:36:13 +0000 Subject: [PATCH] Updated Server/Client attribute help text. Hopefully adds additional support in preventing confusion. --- Assets/Mirror/Core/Attributes.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Assets/Mirror/Core/Attributes.cs b/Assets/Mirror/Core/Attributes.cs index 8f74604d80..53114b4ff5 100644 --- a/Assets/Mirror/Core/Attributes.cs +++ b/Assets/Mirror/Core/Attributes.cs @@ -48,28 +48,28 @@ public class TargetRpcAttribute : Attribute } /// - /// Prevents clients from running this method. - /// Prints a warning if a client tries to execute this method. + /// Only an active server will run this method. + /// Prints a warning if a client or in-active server tries to execute this method. /// [AttributeUsage(AttributeTargets.Method)] public class ServerAttribute : Attribute {} /// - /// Prevents clients from running this method. + /// Only an active server will run this method. /// No warning is thrown. /// [AttributeUsage(AttributeTargets.Method)] public class ServerCallbackAttribute : Attribute {} /// - /// Prevents the server from running this method. - /// Prints a warning if the server tries to execute this method. + /// Only an active client will run this method. + /// Prints a warning if the server or in-active client tries to execute this method. /// [AttributeUsage(AttributeTargets.Method)] public class ClientAttribute : Attribute {} /// - /// Prevents the server from running this method. + /// Only an active client will run this method. /// No warning is printed. /// [AttributeUsage(AttributeTargets.Method)]