Version: 2019.4
LanguageEnglish
  • C#
Method group is Obsolete

NetworkTransport.LoadEncryptionLibrary

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Obsolete The UNET transport will be removed in the future as soon a replacement is ready.

Declaration

public static bool LoadEncryptionLibrary(string libraryName);

Parameters

libraryName The path to the native encryption plugin to load, relative to the executable.

Returns

bool True if the provided native encryption plugin was loaded successfully and is being used by the transport layer. False otherwise.

Description

Instructs the transport layer to load the provided encryption plugin.

If the encryption plugin is loaded successfully, the transport layer will start calling into it when sending or receiving network packets. The encryption plugin needs to be a native dynamic library that implements the required encryption APIs, as detailed in the Unity Multiplayer encryption support documentation pages.