reckfellENGINE

RpcAttribute

Attribute that changes the RPC mode for the annotated method to the given RpcAttribute.Mode, optionally specifying the RpcAttribute.TransferMode and RpcAttribute.TransferChannel (on supported peers). See MultiplayerApi.RpcMode and Multiplay

On this page
class RpcAttributeReckfellSharpInherits Attribute

Attribute that changes the RPC mode for the annotated method to the given RpcAttribute.Mode, optionally specifying the RpcAttribute.TransferMode and RpcAttribute.TransferChannel (on supported peers). See MultiplayerApi.RpcMode and MultiplayerPeer.TransferModeEnum. By default, methods are not exposed to networking (and RPCs).

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

RpcAttributeConstructor
# RpcAttribute
C#
public RpcAttribute(MultiplayerApi.RpcMode mode = MultiplayerApi.RpcMode.Authority);

Constructs a RpcAttribute instance.

Parameters
NameTypeDefault
modeMultiplayerApi.RpcModeMultiplayerApi.RpcMode.Authority
mode

The RPC mode to use.

Properties4

CallLocalProperty
# CallLocal
C#
public bool CallLocal { get; set; }

If the method will also be called locally; otherwise, it is only called remotely.

ModeProperty
# Mode
C#
public MultiplayerApi.RpcMode Mode { get; }

RPC mode for the annotated method.

TransferChannelProperty
# TransferChannel
C#
public int TransferChannel { get; set; }

Transfer channel for the annotated mode.

TransferModeProperty
# TransferMode
C#
public MultiplayerPeer.TransferModeEnum TransferMode { get; set; }

Transfer mode for the annotated method.

Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.