This page has been translated automatically.
UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
GUI-Related Classes
Plugins Library
High-Level Systems
Samples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
Content Creation
Materials
Unigine Material Library
Tutorials
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

RakNet Plugin

A RakNet plugin provides the following functionality for Unigine-based applications out of the box:

  • Client/server architecture
  • Exchange of time-stamped data through the network
  • Synchronization of states between the server and the client
  • Statistics about network connection
  • LAN server discovery

Network functionality is provided through RakNet, a cross-platform C++ game networking engine, which is integrated into Unigine framework. (See details).

How to Load Network Plugin

To dynamically load the Network plugin, the following is required:

  • Network library of the same bitness/debug version as Unigine executable (for example, libNetwork_x86d.so).
  • RakNet library of the same version (for example, libRakNet_x86d.so).
  • Define the following command by the engine start-up or in the launcher:
    Shell commands
    main_x86d -extern_plugin Network
    
    Here, you can define path to the Network module (without any prefixes or postfixes): relative to the executable or an absolute one.
Last update: 2017-07-03
Build: ()