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()
Verifies the target can be disposed based on its lock state.
Declaration
protected void CheckLockBeforeDispose()
Exceptions
Type | Condition |
---|---|
Exception | Thrown when attempting to dispose a locked temporary RPC target |
Dispose()
Releases resources used by the RPC target.
Declaration
public abstract void Dispose()