Method AddRawParameterStruct
AddRawParameterStruct<T>(ref T)
Add a new parameter structure to the list. Only one instance of any parameter type is stored at a time. Adding a new instance of an existing parameter structure will overwrite the one that is already stored.
Declaration
public void AddRawParameterStruct<T>(ref T parameter) where T : unmanaged, INetworkParameter
Parameters
| Type | Name | Description |
|---|---|---|
| T | parameter | Parameter structure to add. |
Type Parameters
| Name | Description |
|---|---|
| T | Type of INetworkParameter to add. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | If the parameters contain invalid values. Note that this exception is only thrown when collections checks are enabled (i.e. in the editor). Otherwise an error is logged and the parameters are added anyway. |