Skip to content

Using NetworkStart()

Ryan edited this page Jul 12, 2020 · 2 revisions

Network Start

When a NetworkObject component gets initialized it invokes onNetworkStart a Unity event attached to the component. However there is another way of doing it as well, if any of your components attached to the same GameObject the NetworkObject is attached to have a method named "NetworkStart" it will automatically get invoked on a NetworkStart. Allowing for more customization and flexiblity.

You must check detectNetworkStart in the NetworkObject component, or inside the NetworkData component for the PrefabDomain's default.

Clone this wiki locally