Constructor NetworkVariable
NetworkVariable(T, NetworkVariableReadPermission, NetworkVariableWritePermission)
Constructor for NetworkVariable<T>
Declaration
public NetworkVariable(T value = default, NetworkVariableReadPermission readPerm = NetworkVariableReadPermission.Everyone, NetworkVariableWritePermission writePerm = NetworkVariableWritePermission.Server)
Parameters
| Type | Name | Description |
|---|---|---|
| T | value | initial value set that is of type T |
| NetworkVariableReadPermission | readPerm | the NetworkVariableReadPermission for this NetworkVariable<T> |
| NetworkVariableWritePermission | writePerm | the NetworkVariableWritePermission for this NetworkVariable<T> |