Simulator Query Transfer
Last updated
Was this helpful?
Last updated
Was this helpful?
In an advanced Simulator setup, where entity creation is restricted to the Simulator, it is not possible for a Client to create their own queries. In you can create a live query Prefab that has a behaviour with the Simulate On property set to Server Side with Client Input. However, in order to provide a Client with a live query in an entity-restricted setup, the Simulator has to create the live query on behalf of the Clients and transfer the input authority back.
Note that the Simulate In field is set to Client Side. This is appropriate for this setup even though the state authority of this entity is a Simulator, since from the point of view of the Replication Server all Simulators are Clients as well.
Constructing a Prefab that has Simulator authority but benefits a Client with the area of interest is simple. It requires that the Authority Transfer mode is Request and that there is a component. It is also possible to add any kind of query to these Prefabs or multiple types and the Client will benefit from them all.