Description
Is your feature request related to a problem? Please describe.
The ownership callback function is only called when calling the ChangeOwnership and RemoveOwnership functions.
However, the ownership callback function should be called in every case an object gains or loses ownership.
For example, when creating an object with the SpawnWithOwnership function, the ownership callback function is not called.
So you need to write a separate code to check the IsOwner status in the NetworkStart function.
Also, is there any reason the OnGainedOwnership and OnLostOwnership callback functions are only called on the client?
I think it could be used more generally if you call it from both server and client.
Describe the solution you'd like
OnGainedOwnership and OnLostOwnership callback functions should be used more generically. Ex. SpawnWithOwnership
Describe alternatives you've considered
The ownership callback function should be called in every case an object gains or loses ownership.