An open API service indexing awesome lists of open source software.

https://github.com/fuqunaga/prefsguisyncforunet

PrefsGUI subset for synchronization over the network
https://github.com/fuqunaga/prefsguisyncforunet

prefs sync unet unity

Last synced: 4 months ago
JSON representation

PrefsGUI subset for synchronization over the network

Awesome Lists containing this project

README

          

# PrefsGUISyncUNET
PrefsGUI subset for synchronization over the network

![SyncOverUNET](Documentation~/SyncOverUNET.gif)

:warning: [UNet is depreciated by Unity](https://support.unity.com/hc/en-us/articles/360001252086-UNet-Deprecation-FAQ).
if you use [Mirror](https://github.com/vis2k/Mirror) instead, please see [PrefsGUISyncForMirror](https://github.com/fuqunaga/PrefsGUISyncForMirror)

# Install

## Install dependencies

- **MultiPlayer HLAPI** from PackageManager
- [RapidGUI](https://github.com/fuqunaga/RapidGUI)
- [PrefsGUI](https://github.com/fuqunaga/PrefsGUI)

## Intall PrefsGUISyncUNET
Download a `.unitypackage` file from [Release page](https://github.com/fuqunaga/PrefsGUISyncUNET/releases).

or

**Using Pacakge Manager**
Add following line to the `dependencies` section in the `Packages/manifest.json`.
```
"ga.fuquna.prefsguisyncunet": "https://github.com/fuqunaga/PrefsGUISyncUNET.git"
```

# Usage
![EditorWindow](Documentation~/PrefsGUISyncObj.png)
Put **PrefsGUISyncUNET** game object to the scene.
This inherits from `NetworkBehaivour`, so take steps to make it work(call `Spawn()` or put on the online scene).


All prefs are automatically synchronized between the server and client!

### Don’t want to sync some prefs
Disable sync toggle at the **EditorWindow**(See the section below).
or Set prefs's key to `PrefsGUISyncUNet.ignoreKeys` at the inspector.

# EditorWindow
![EditorWindow](Documentation~/EditorWindow.png)
- **Window -> PrefsGUI**
- You can set whether to synchronize with the sync toggle

# Reference
- **RapidGUI**
https://github.com/fuqunaga/RapidGUI

- **PrefsGUI**
https://github.com/fuqunaga/PrefsGUI