# 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.6/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://3473996028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8utFtIPIKpqSCWkfmEu3%2Fuploads%2F1RgeIqncgwzDWQHwgj7n%2Fimage.png?alt=media&#x26;token=e2aff997-858d-4681-a6d3-5837a277f5d9" 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://3473996028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8utFtIPIKpqSCWkfmEu3%2Fuploads%2FFHeI0CnrW05BdXOXkZJv%2Fimage.png?alt=media&#x26;token=51eed245-6e22-4271-8a78-1a5272ebb669" alt=""><figcaption><p>Example of setting a CoherenceSync entity global</p></figcaption></figure>
