Home

Awesome

SyncUtil For Mirror

Sync Utilities For Mirror

Installation

Install Dependency

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

<!-- ![](Documentation~/2022-04-12-18-04-29.png) -->

How to run Examples

  1. Add all scene files(*.unity) to Scenes In Build of Build Settings.
  2. 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.

Lorentz Attractor implementation on CPU

Conway's 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.

ClientInvisibility

Specify the invisibility per Client to a GameObject.

OnlineOfflineSceneLoadHelper

Load/Unload online/offline scene on hierarchy when application play.

References