-
Notifications
You must be signed in to change notification settings - Fork 0
Using NetworkStart()
Ryan edited this page Jul 12, 2020
·
2 revisions
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.