Class BaseRpcTarget
The base abstract RPC Target class used by all universal RPC targets.
Implements
Inherited Members
Namespace: Unity.Netcode
Assembly: Unity.Netcode.Runtime.dll
Syntax
public abstract class BaseRpcTarget : IDisposable
Fields
m_NetworkManager
The NetworkManager instance which can be used to handle sending and receiving the specific target(s)
Declaration
protected NetworkManager m_NetworkManager
Field Value
Type | Description |
---|---|
NetworkManager |
Methods
CheckLockBeforeDispose()
Can be used to provide additional lock checks before disposing the target.
Declaration
protected void CheckLockBeforeDispose()
Exceptions
Type | Condition |
---|---|
Exception | The exception thrown if the target is still locked when disposed. |
Dispose()
Invoked when the target is disposed.
Declaration
public abstract void Dispose()