Api Sandbox BroadcastAttribute
class

BroadcastAttribute

public sealed class BroadcastAttribute : RpcAttribute

Marks a method as being an RPC that when invoked will be called for all connected clients including the host. The state of the object the RPC is called on will be up-to-date including its GameTransform and any properties with the SyncAttribute or HostSyncAttribute attributes by the time the method is called on remote clients. The only except is any synchronized properties marked with Query which will generally only be received every network tick.

Attributes

[ Obsolete ]

Constructors

BroadcastAttribute()
BroadcastAttribute(NetPermission permission)

Properties

Name Type Description
Permission NetPermission
Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.BroadcastAttribute