Api Sandbox AuthorityAttribute
class

AuthorityAttribute

public sealed class AuthorityAttribute : RpcAttribute

Marks a method as being an RPC specifically targeted to the owner of the GameObject, or the host if the GameObject doesn't have an owner. 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

AuthorityAttribute()
AuthorityAttribute(NetPermission permission)

Properties

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