Getting the Authority client of a CoherenceSync component

Hey!

How to transfer the authority of a CoherenceSync A to the owner a CoherenceSync B?

I’m looking for something like A.TransferAuthority(B.AuthorityClientId, AuthorityType.Full), but I can adapt as long as the state authority of A is deciding who should get the authority next.

Thanks!

Hey! So this is a common question and we plan on making it easier to know which client has authority over each entity in a future release. For now, the best way is to add a synced ClientID to the prefab which is set by the authority when they gain authority. As of 1.8 you can sync ClientIDs directly but if you’re on an earlier version you can use a uint and cast it to ClientID when you transfer.