From 1e04c9833b05801d9fd720b16f1ab828377d1afb Mon Sep 17 00:00:00 2001 From: JesusLuvsYooh <57072365+JesusLuvsYooh@users.noreply.github.com> Date: Mon, 11 Nov 2024 12:06:29 +0000 Subject: [PATCH] Updated Server/Client attribute help text. (#3942) 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 8f74604d8..53114b4ff 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)]