[Obsolete] SyncEvent (#2180)

This commit is contained in:
vis2k 2020-08-21 17:03:06 +02:00 committed by GitHub
parent eec49fafce
commit 54c32227bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,6 +49,7 @@ public class TargetRpcAttribute : Attribute
/// <summary>
/// SyncEvents are networked events like ClientRpc's, but instead of calling a function on the game object, they trigger Events instead.
/// </summary>
[Obsolete("[SyncEvent] will be removed soon. Use ClientRpc/TargetRpc instead. SyncEvent was a leftover from the UNET days, nobody ever uses or understands it. We will remove it because it requires significant Weaver overhead to maintain.")]
[AttributeUsage(AttributeTargets.Event)]
public class SyncEventAttribute : Attribute
{