Unity3D

Put the lib/Plugins folder and files from the ProudNet installation path into Assets/Plugins in your Unity project path, and the ProudNet library will be included in your project.

The detailed process is as follows.

1. plugins copy and paste

Move to the ProudNet installation path

Copy Plugins from the ProudNet installation path.

Unity Project Path

Paste the copied files into the Plugins folder of the Unity project where you want to use ProudNet.

2. Plugin common settings

- Select x86, x86_64 plugins

The photo below is an example of using the x86_64 plugin to delete the x86 folder.

Delete the x86 folder inside the Plugins folder in your Unity project path

Change the plugin file settings inside x86_64 to use it.

- Select a plugin from the Stripped folder

If you check the Plugins folder in your Unity project, it contains plugins as shown in the photo below. The plugins in the stripped folder are the same as the ones outside, but the ones in the stripped folder contain symbols, so keep the ones you need and delete the ones you do not use.

libs -> arm64-v8a -> Delete the stripped folder.
libs -> armeabi-v7a -> Delete the stripped folder.
libs -> x86 -> Delete the stripped folder.

3. Setting up plugins based on your environment

- Mac

Mac - ProudDotNetClientUnity
Mac - ProudDotNetClientUnity
Mac - ProudNetClientPlugin
Mac - ProudDotNetClientUnity-IOS

The other plugins can be used by default, but if you are on iOS, you will need to set up the plugins as shown in the photos above.

- Windows or Android

If you are on Windows or Android, proceed as follows to set up the plugin.

ProudDotNetClientUnity-IOS
Window - ProudDotNetClientUnity
Window - ProudDotNetClientUnity
Window - ProudDotClienPlugin

- WebGL

Under /Assets/Plugins/WebGL, you will find WebGL-specific plugins.

Unity will automatically recognize the plugin as being built with WebGL; If it's not WebGL, other plugins should not be built with it when the build platform WebGL is selected.

If you get an error like 'XXX' could not be found, it means that WebGL-related plugins have not been added properly, and if you get an error like 'XXX' already defined, it means that there is a conflict with another plugin.

Select the plugin and set JSClient.jslib and ProudNetClientPlugin-webgl.dll to be included in the WebGL build as shown in the Inspector window.

4. Creating a script

After everything is set up, create a script to create the NetClient.

CS file to use as a client

As in the example above, you can create a NetClient normally without any compilation errors.

Example of adding GameClient.cs as a component to an empty Game Object

You can use the script file you created by adding it as a component to the Game Object you want to use as a client.

5. iOS Build

For iOS, please see iOS Build.


⬅️ Back

Last updated