SyncVar OnChange callback multiple parameter options #250
Closed
vojtechmusilek
started this conversation in
Feature Request
Replies: 1 comment
-
I considered adding this in at first but that would mean every synctype would need different callbacks. Things suddenly become more complicated because syncvars are done at codegen, but others via user code. I can see how the options would be a little more user friendly but for the amount and risk required to accommodate all synctypes I don't believe it's worth putting in at this time. Sorry, but for now it stays as is. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Current callback is required to have 3 parameters:
OnChange method for ... must contain 3 parameters ...
Notes
All variants prefer previous value over the next value because you can assess the next value in the field.
In my case the most used would be 0 parameters, so that is the one with highest priority.
Depending on how difficult would it be, the 1 and 2 could be also useful for someone.
Proposal
(examples with int)
(int prev, int next, bool asServer)
(int prev, bool asServer)
(bool asServer)
(int prev)
()
Beta Was this translation helpful? Give feedback.
All reactions