Niv
NNormal
•Created by Niv on 7/17/2024 in #🤝ask-a-question
Is there a callback when *any* property of a model changes?
In my RealtimeComponent, I have a relatively big model with several properties, is there a way to get a callback when any property changes instead of creating a didChange callback to every property and subscribing/unsubscribing to it?
14 replies
NNormal
•Created by Niv on 7/7/2024 in #🤝ask-a-question
is the ReltimeView property 'preventOwnershipTakeover' synched between the clients?
Meaning, if clientA takes ownership and the sets the 'preventOwnershipTakeover' property to true - will client 'B' observe that property to be true on his end?
If it is not synchronized and assuming we have a rigidbody with a RealtimeTransform component that clientA prevented ownership changes on - what would prevent client B from requesting ownership on that rigidbody (and immediately receiving it), only for it to be rolled back by the server. This process can happen again and again over multiple frames (as the rigidbody keeps colliding with clientB owned rigidbodies - creating an unnecessarily janky behavior of that rigidbody.
18 replies