# CoherenceGlobalQuery

CoherenceGlobalQuery is used to create a query that will make all entities marked as "**Global**" visible, regardless of their position or [LiveQuery](https://docs.coherence.io/1.8/manual/components/coherence-live-query) configuration.

In order to create a global query, a CoherenceGlobalQuery component has to be added to a networked Prefab (i.e. one with CoherenceSync attached):

<figure><img src="https://content.gitbook.com/content/xvd5c9jwOH7YkKEUSqJD/blobs/YopWDK4hrd1J5XSZyfnl/image.png" alt=""><figcaption><p>Example Prefab with a CoherenceGlobalQuery Component</p></figcaption></figure>

Making a networked object global is as simple as checking the "**Is Global**" toggle in the CoherenceSync config window. From now on that object will be visible to every client with the CoherenceGlobalQuery enabled.

<figure><img src="https://content.gitbook.com/content/xvd5c9jwOH7YkKEUSqJD/blobs/yRBn7IWEgFij9Z6SVLXt/image.png" alt=""><figcaption><p>Example of setting a CoherenceSync entity global</p></figcaption></figure>
