mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 19:10:32 +00:00
35fee94d56
* Moved doc files to docfx folder * load csproj * doc generation * Run docfx * Add docfx * Deploy docs to mirror-networking.com * use deploy phase * deploy whole generated site * Fixed the semantic release command * Is last \ required? * show debug log * using lftp for site deploy * Testing lftp * Show current folder * try -e command option * Show me the files * use plain ftp * use choco install instead of cinst * fix ssl certificate validation * fix username * Upload site to xmldocs folder * no need to archive docs * No need for debug output * Fix file permissions * show me .htaccess * Show me contents * Wipe out folder to fix permissions * Set file permissions * Fix file permissions * complete toc list * Migrated intro page * Remove old docs * Update link to docs * Add link to github * Only update docs for stuff in master * This is a powershell command * Update doc/articles/Concepts/Communications/RemoteActions.md * Update doc/articles/Concepts/VisibilityCustom.md * Update doc/articles/Concepts/Authority.md * Update doc/articles/Concepts/GameObjects/SpawnObjectCustom.md * Update doc/articles/Concepts/Authority.md * Update doc/articles/Classes/SyncVars.md * No need to run semver twice
1.9 KiB
1.9 KiB
Application Events Overview
General description of Application Events
- OnStartHost
This event is invoked when a host is started. - OnStartServer
This is invoked for NetworkBehaviour objects when they become active on the server. This could be triggered by NetworkServer.Listen() for objects in the Scene, or by NetworkServer.Spawn() for objects that are dynamically created. This will be called for objects on a "host" as well as for object on a dedicated server. - OnStartClient
Called on every NetworkBehaviour when it is activated on a client. Objects on the host have this function called, as there is a local client on the host. The values of SyncVars on object are guaranteed to be initialized correctly with the latest state from the server when this function is called on the client. - OnStartAuthority
This is invoked on behaviours that have authority, based on context and NetworkIdentity.localPlayerAuthority.
This is called after OnStartServer and OnStartClient.
When NetworkIdentity.AssignClientAuthority is called on the server, this will be called on the client that owns the object. When an object is spawned with NetworkServer.SpawnWithClientAuthority, this will be called on the client that owns the object. - OnStopHost
This hook is called when a host is stopped. - OnStopServer
This event is called when a server is stopped - including when a host is stopped. - OnStopClient
This event is called when a client is stopped. - OnStopAuthority
This is invoked on behaviours when authority is removed.
When NetworkIdentity.RemoveClientAuthority is called on the server, this will be called on the client that owns the object. - OnApplicationQuit
Sent to all game objects before the application quits. In the editor this is called when the user stops playmode.