# Syncing an enum via CoherenceSync

**URL:** <https://community.coherence.io/t/syncing-an-enum-via-coherencesync/724>\
**Category:** Bug reports\
**Created:** [July 15, 2025, 3:33pm UTC](https://community.coherence.io/t/syncing-an-enum-via-coherencesync/724 "2025-07-15T15:33:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ille.tom](https://avatars.discourse-cdn.com/v4/letter/i/ed655f/32.png) [@ille.tom](https://community.coherence.io/u/ille.tom)\
**Post date:** [July 15, 2025, 3:33pm UTC](https://community.coherence.io/t/syncing-an-enum-via-coherencesync/724/1 "2025-07-15T15:33:29Z")

</div>

Hi!  
I am trying to sync an enum method (or property) via the `CoherenceSync` unity component.

It is stated in the docs that `enum` is a supported type:

> **[Supported types | coherence Documentation](https://docs.coherence.io/manual/networking-state-changes/supported-types)**

I cannot make it work though. The CoherenceSync configuration window shows other methods and properties of the script, but not the ones using an enum.

---

<div class="post-metadata">

**Author:** ![ille.tom](https://avatars.discourse-cdn.com/v4/letter/i/ed655f/32.png) [@ille.tom](https://community.coherence.io/u/ille.tom)\
**Post date:** [July 15, 2025, 3:37pm UTC](https://community.coherence.io/t/syncing-an-enum-via-coherencesync/724/2 "2025-07-15T15:37:28Z")

</div>

´´´

```
public enum ItemType
{
    None = 0,
    Jetpack,
    Glider,
}

public class PlayerItemManager : MonoBehaviour
{
    [SerializeField, ReadOnly] 
    private ItemType activeItemType;
   
    // trying to sync this method
    public void SetItem(ItemType item)
    {
        activeItemType = item;
        Debug.Log($"Item {item} has been selected.");
    }
 ...

```

´´´

---

<div class="post-metadata">

**Author:** ![ille.tom](https://avatars.discourse-cdn.com/v4/letter/i/ed655f/32.png) [@ille.tom](https://community.coherence.io/u/ille.tom)\
**Post date:** [July 15, 2025, 3:38pm UTC](https://community.coherence.io/t/syncing-an-enum-via-coherencesync/724/3 "2025-07-15T15:38:09Z")

</div>

Above is the code in question. We are using Coherence 1.7.0.

---

<div class="post-metadata">

**Author:** ![brit](https://dub1.discourse-cdn.com/flex017/user_avatar/community.coherence.io/brit/32/34_2.png) [@brit](https://community.coherence.io/u/brit)\
**Post date:** [July 15, 2025, 8:39pm UTC](https://community.coherence.io/t/syncing-an-enum-via-coherencesync/724/4 "2025-07-15T20:39:15Z")

</div>

Hey, looking into this. Can you share what your config window looks like for PlayerItemManager?

---

<div class="post-metadata">

**Author:** ![brit](https://dub1.discourse-cdn.com/flex017/user_avatar/community.coherence.io/brit/32/34_2.png) [@brit](https://community.coherence.io/u/brit)\
**Post date:** [July 15, 2025, 9:35pm UTC](https://community.coherence.io/t/syncing-an-enum-via-coherencesync/724/5 "2025-07-15T21:35:38Z")

</div>

Sorry, just realized that we released some 1.8 docs (enums) with 1.7. 1.8 is coming soon and will support enum syncing. I don’t have an exact release date but it is our next release.

---

<div class="post-metadata">

**Author:** ![ille.tom](https://avatars.discourse-cdn.com/v4/letter/i/ed655f/32.png) [@ille.tom](https://community.coherence.io/u/ille.tom)\
**Post date:** [July 16, 2025, 7:51am UTC](https://community.coherence.io/t/syncing-an-enum-via-coherencesync/724/6 "2025-07-16T07:51:34Z")

</div>

Thanks, that makes sense! I will wait for 1.8 then 🙂

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex017/uploads/coherence/original/1X/b3aa79eb9519fac7aad7eba18f15a1e8ce60f6e2.png) [@system](https://community.coherence.io/u/system)\
**Post date:** [July 16, 2026, 7:52am UTC](https://community.coherence.io/t/syncing-an-enum-via-coherencesync/724/7 "2026-07-16T07:52:03Z")

</div>

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
