Class ToClientAttribute
- Namespace
- Unity.Multiplayer.Core
Marks a partial void method on a NetEntity as a call from the server to one client. Its first
parameter is the target, a ulong client id (a NetSender converts to one, so a handler can
answer whoever called it). Only the server may call it; that client runs void OnName(<the other
parameters>).
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class ToClientAttribute : Attribute
- Inheritance
-
ToClientAttribute
- Inherited Members
Properties
Delivery
Reliable (default) or unreliable.
public Delivery Delivery { get; set; }