
Only the Owner can assign and take away the control of an entity. The owner of an entity has absolute control over everything (state, transform, etc.).īeing a Controller of an entity is something which can be assigned, taken away and transferred to other peers. Ownership of an entity can not be transferred to anyone else. This peer is the only one where BoltEntity.isOwner will return true.

In order to mark a GameObject as networked, you need to use the BoltEntity component.īy using this component, you transform an ordinary Unity Prefab into a networked element, allowing Bolt to extract, sync, and manage its data. The BoltEntity is a Unity GameObject that will be represented on the network by Photon Bolt. What About Normal Proxies, Which Are Not The Controller?.What Is BoltCommand.isFirstExecution Used For?.Method: BoltEntity.ExecuteCommand(BoltCommand Cmd, Bool ResetState).Method: BoltEntity.SimulateController().Of course all your PUN & Bolt projects will continue to work and run with the known performance in the future.įor any upcoming or new projects: please switch to Photon Fusion or Quantum. We will support Unity 2022 with PUN 2, but no new features will be added. delete(self) Deletes the object from NIOS side.PUN Classic (v1), PUN 2 and Bolt are in maintenance mode.
#Changing ownership of a networkview object update



Return_fields can be set to retrieve particular fields from NIOS,įor example return_fields=. Requires connector passed as the first argument. search(cls, connector, return_fields=None, search_extattrs=None, force_proxy=False, **kwargs) Search single object on NIOS side, returns first object that match search criteria.Object related fields are passed in as kwargs: field=value, field2=value2. Requires connector passed as the first argument, check_if_exists and update_if_exists are optional. create(cls, connector, check_if_exists=True, update_if_exists=False, **kwargs) Creates object on NIOS side.List of supported objects is defined in next section. All top level objects support interface for CRUD operations.
