# 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.7/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/NGFZGdbLA4bzHQXTuDMT/blobs/e3hJxi2wDnLCXRJXHNMy/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/NGFZGdbLA4bzHQXTuDMT/blobs/dL02FHmOoUO4Dsom4flT/image.png" alt=""><figcaption><p>Example of setting a CoherenceSync entity global</p></figcaption></figure>
