rogan2528R
Normal8mo ago
rogan2528

isOwnedLocallySelf seems to be incorrect for me

Sorry, I'm a newbie. I'm instantiating my prefab with:
Realtime.InstantiateOptions options = new Realtime.InstantiateOptions();
options.destroyWhenLastClientLeaves = true;
options.destroyWhenOwnerLeaves = true;
options.ownedByClient = true;
options.preventOwnershipTakeover = true;
GameObject myPeerGO = Realtime.Instantiate("peer", options);
RealtimeView realtimeView = myPeerGO.GetComponent<RealtimeView>();
realtimeView.RequestOwnershipOfSelfAndChildren();

However, on a change callback, on a property of that RealtimeComponent when I query: this.isOwnedLocallySelf, it returns as false. I'm not sure why it would be false. (And the remote ones are returning as true).
Was this page helpful?