Struct FragmentationUtility.Parameters
Parameters for the FragmentationPipelineStage.
Inherited Members
Namespace: Unity.Networking.Transport.Utilities
Syntax
public struct Parameters : INetworkParameter
Fields
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 PayloadCapacity
Field Value
Type | Description |
---|---|
Int32 | 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 |
---|---|
Boolean | True if the parameter is valid, false otherwise. |