Class FragmentationStageParameterExtensions
Extensions for Fragmentation
Inherited Members
Namespace: Unity.Networking.Transport.Utilities
Assembly: Unity.Networking.Transport.dll
Syntax
public static class FragmentationStageParameterExtensions
Methods
GetFragmentationStageParameters(ref NetworkSettings)
Gets the Fragmentation
Declaration
public static FragmentationUtility.Parameters GetFragmentationStageParameters(this ref NetworkSettings settings)
Parameters
Type | Name | Description |
---|---|---|
Network |
settings | Network |
Returns
Type | Description |
---|---|
Fragmentation |
Returns the Fragmentation |
WithFragmentationStageParameters(ref NetworkSettings, int)
Sets the Fragmentation
Declaration
public static ref NetworkSettings WithFragmentationStageParameters(this ref NetworkSettings settings, int payloadCapacity = 4096)
Parameters
Type | Name | Description |
---|---|---|
Network |
settings | Network |
int | payloadCapacity |
Returns
Type | Description |
---|---|
Network |
Modified Network |