Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fuqunaga/syncutilformirror
Sync Utilities For Mirror
https://github.com/fuqunaga/syncutilformirror
mirror networking unity
Last synced: 4 months ago
JSON representation
Sync Utilities For Mirror
- Host: GitHub
- URL: https://github.com/fuqunaga/syncutilformirror
- Owner: fuqunaga
- License: mit
- Created: 2022-05-09T05:41:30.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-27T10:08:16.000Z (11 months ago)
- Last Synced: 2024-10-11T20:37:07.186Z (4 months ago)
- Topics: mirror, networking, unity
- Language: C#
- Homepage:
- Size: 96.1 MB
- Stars: 11
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# SyncUtil For Mirror
Sync Utilities For [Mirror](https://github.com/vis2k/Mirror)
# Installation## Install Dependency
- [Mirror via AssetStore](https://assetstore.unity.com/packages/tools/network/mirror-129321)## Install package via scoped registory
**Edit > ProjectSettings... > Package Manager > Scoped Registries**
Enter the following and click the Save button.
```
"name": "fuqunaga",
"url": "https://registry.npmjs.com",
"scopes": [ "ga.fuquna" ]
```
**Window > Package Manager**
Select `MyRegistries` in `Packages:`

Select `SyncUtil For Mirror` and click the Install button
# How to run Examples
1. Add all scene files(*.unity) to `Scenes In Build` of Build Settings.
1. Open and run *SyncUtilExamples.unity* scene. this is an example scene launcher.# Functions
## SyncParam
Synchronization of member variables outside NetworkBeheivour.
## SyncBehaviourEnabled, SyncGameObjectActive

## InstanceRandom
Deterministic random per instance.

## LockStep
Deterministic LockStep framework.
- Chasing Playback
- Consistency Checker(Check for client out-of-sync)
*[Lorentz Attractor](https://en.wikipedia.org/wiki/Lorenz_system) implementation on CPU*
*[Conway's Game of Life](https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life) implementation on GPU*## Spawner
Spawn prefabs when the server is started.
Register prefabs to NetworkManager's spawn prefabs.
## ServerOrStandAlone
Deactivate child GameObjects when server or standalone.
## ClientInvisibilitySpecify the invisibility per Client to a GameObject.

## OnlineOfflineSceneLoadHelperLoad/Unload online/offline scene on hierarchy when application play.
# References
- [RosettaUI](https://github.com/fuqunaga/RosettaUI) - Code-based GUI library for development menus for Unity
- [PrefsGUI](https://github.com/fuqunaga/PrefsGUI) - Accessors and GUIs for persistent preference values using a JSON file
- [PrefsGUISyncForMirror](https://github.com/fuqunaga/PrefsGUISyncForMirror) - Sync subset for PrefsGUI over Mirror