Ability To Mark SyncVars Dirty #353
Closed
AhmetDmr02
started this conversation in
Feature Request
Replies: 3 comments 4 replies
-
Why would you need the hook to call if the value hasn't changed though?
…On Mon, May 1, 2023, 11:45 AM AhmetDmr02 ***@***.***> wrote:
Currently, SyncVar hooks are only called when the value is changed. This
can lead to some issues on hooks if you're not familiar with how SyncVars
work. I think it would be great to have the ability to mark them as
'dirty', so that even if the value is not changed, the hook will still be
called. This would add more ways to implement a certain system, especially
for board games that involve dice.
—
Reply to this email directly, view it on GitHub
<#353>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGPJC3QULZ6TAIBGFSQDCGLXD7LDNANCNFSM6AAAAAAXR4RZ2I>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Gotcha. Use RPCs and if you want the last value send to late joiners use
BufferLast on the RPC.
…On Mon, May 1, 2023, 11:45 AM AhmetDmr02 ***@***.***> wrote:
Currently, SyncVar hooks are only called when the value is changed. This
can lead to some issues on hooks if you're not familiar with how SyncVars
work. I think it would be great to have the ability to mark them as
'dirty', so that even if the value is not changed, the hook will still be
called. This would add more ways to implement a certain system, especially
for board games that involve dice.
—
Reply to this email directly, view it on GitHub
<#353>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGPJC3QULZ6TAIBGFSQDCGLXD7LDNANCNFSM6AAAAAAXR4RZ2I>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
3 replies
-
Per discussion here the rework/improved syncvar will have this feature. Because of this, the old syncvar will not be getting an update. Marking as denied because current syncvars will not be getting anymore enhancements, as the new technique for using syncvars will be considerably better (and include this feature). |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, SyncVar hooks are only called when the value is changed. This can lead to some issues on hooks if you're not familiar with how SyncVars work. I think it would be great to have the ability to mark them as 'dirty', so that even if the value is not changed, the hook will still be called. This would add more ways to implement a certain system, especially for board games that involve dice.
Beta Was this translation helpful? Give feedback.
All reactions