The SyncVar hook calls functions without filling in their parameters, how?

Everything works but I don’t understand how. We call the Handler methods via the SyncVar hooks but we never specify the input variables for the parameters. Can someone explain this to me?

The input parameters for a syncVar hook are by default the old version of the variable and the new version of the variable. SyncVar hooks are triggered when the variable they are attributed to is changed from one from to the next. Mirror keeps track of the previous value and the new value.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms