scene object
if i have a sceneobject with a model (not instantiated, but included in the scene) is there a way to claim ownership of it? is the model synced by default? is it controllable?
preventOwnershipTakeover flag. When this flag is true on any model, the server will deny any clientβs attempt to change the ownership of an object in that model unless it has no owner source (https://normcore.io/documentation/room/ownership-and-lifetime-flags#prevent-ownership-takeover-of-a-realtimeview).public void CreateObjectAndRequestOwnershipOfRealtimeTransform() {
// Instantiate the My Object prefab, leave the view unowned.
GameObject myObject = Realtime.Instantiate("My Object", ownedByClient: false);
// Get the RealtimeTransform component
RealtimeTransform realtimeTransform = myObject.GetComponent<RealtimeTransform>();
// Request Ownership
realtimeTransform.RequestOwnership();
}