Class ToClientsAttribute

Namespace
Unity.Multiplayer.Core

Marks a partial void method on a NetEntity as a call from the server to every client (the host's own player included). Only the server may call it; each client runs void OnName(<same parameters>).

[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class ToClientsAttribute : Attribute
Inheritance
ToClientsAttribute
Inherited Members

Properties

Delivery

Reliable (default) or unreliable.

public Delivery Delivery { get; set; }

Property Value

Delivery