# Asset management

In this section we cover how **coherence** handles loading `CoherenceSync` Prefabs into memory and instantiating them when a new remote entity appears on the network.

### CoherenceSyncConfig assets

Whenever you start synchronizing one of your Prefabs, either by adding the `CoherenceSync` component manually or clicking the **Sync with coherence** toggle in the Prefab inspector, coherence will create a `CoherenceSyncConfig` ScriptableObject to track the existence of this entity, and add it to a [registry](#the-coherencesyncconfigregistry).

<figure><img src="/files/EZTlSD3peiBiD7z1ekIM" alt="" width="563"><figcaption><p>A CoherenceSyncConfig</p></figcaption></figure>

This object holds information on how a certain type of network entity is loaded and instantiated. As a user, the two main changeable options here are [**Load via**](/1.2.4/manual/asset-management/load-via.md), and [**Instantiate via**](/1.2.4/manual/asset-management/instantiate-via.md).

There is a 1:1 correspondence between a networked Prefab and its `CoherenceSyncConfig` object, so you can also edit the related `CoherenceSyncConfig` in the inspector of any `CoherenceSync` component:

<figure><img src="/files/8LCvVqkWguP3b6kags6V" alt=""><figcaption><p>CoherenceSyncConfig in CoherenceSync Inspector</p></figcaption></figure>

The `CoherenceSyncConfig` object allows us to do the following:

* Hard reference the prefab in Editor, this means that whenever we have to do postprocessing in synced prefabs, we don't have to do a lookup or load them from Resources.
* Serialize the method of loading and instantiating this prefab in runtime.
* Soft reference the prefab in Runtime with a GUID, this means we can access the loading and instantiating implementations without having to load the prefab itself into memory.

{% hint style="info" %}
:file\_folder: `Assets/coherence/CoherenceSyncConfigs` is the default location of all `CoherenceSyncConfig` objects.
{% endhint %}

### The CoherenceSyncConfigRegistry

Every time a `CoherenceSyncConfig` object is created, it gets added to a registry that is another ScriptableObject of type `CoherenceSyncConfigRegistry`.

You can inspect all of the `CoherenceSyncConfig` assets in one place in the **CoherenceSync Objects** window, found under the **coherence > CoherenceSync Objects** menu item:

<figure><img src="/files/9gtX46yVGad4doIFC07u" alt=""><figcaption><p>CoherenceSync Objects window</p></figcaption></figure>

This is a great way to see the configuration of different entities next to each other, and to do mass edits.

{% hint style="info" %}
You can also manually inspect the `CoherenceSyncConfigRegistry` by selecting it from :file\_folder: `Assets/coherence` folder
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.coherence.io/1.2.4/manual/asset-management.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
