Struct FragmentationUtility.Parameters
Parameters for the FragmentationPipelineStage.
Implements
Inherited Members
Namespace: Unity.Networking.Transport.Utilities
Assembly: Unity.Networking.Transport.dll
Syntax
public struct FragmentationUtility.Parameters : INetworkParameterFields
PayloadCapacity
Maximum size that can be fragmented by the FragmentationPipelineStage. Attempting to send a message larger than that will result in the send operation returning NetworkPacketOverflow. Maximum value is ~20MB for unreliable packets, and ~88KB for reliable ones.
Declaration
public int PayloadCapacityField Value
| Type | Description | 
|---|---|
| int | Maximum payload capacity. | 
Methods
Validate()
Checks if the values for all fields are valid. This method will be automatically called when adding parameters to the NetworkSettings.
Declaration
public bool Validate()Returns
| Type | Description | 
|---|---|
| bool | True if the parameter is valid, false otherwise. |