Class NetworkVariableBase
Interface for network value containers
Implements
Inherited Members
Namespace: Unity.Netcode
Assembly: solution.dll
Syntax
public abstract class NetworkVariableBase : IDisposable
Constructors
Name | Description |
---|---|
Network |
The default constructor for Network |
Fields
Name | Description |
---|---|
Default |
The default read permissions |
Default |
The default write permissions |
Read |
The read permission for this var |
Write |
The write permission for this var |
Properties
Name | Description |
---|---|
Name | Gets or sets the name of the network variable's instance (MemberInfo) where it was declared. |
Methods
Name | Description |
---|---|
Can |
Gets if a specific client has permission to read the var or not |
Can |
Gets if a specific client has permission to write the var or not |
Dispose() | Virtual IDisposable implementation |
Get |
|
Initialize(Network |
Initializes the NetworkVariable |
Is |
Gets Whether or not the container is dirty |
Mark |
|
Read |
Reads delta from the reader and applies them to the internal value |
Read |
Reads the complete state from the reader and applies it |
Reset |
Resets the dirty state and marks the variable as synced / clean |
Set |
Sets whether or not the variable needs to be delta synced |
Write |
Writes the dirty changes, that is, the changes since the variable was last dirty, to the writer |
Write |
Writes the complete state of the variable to the writer |