# GameObjects do not trigger OnValueSynced

**URL:** <https://community.coherence.io/t/gameobjects-do-not-trigger-onvaluesynced/264>\
**Category:** Suggestions\
**Created:** [March 9, 2023, 7:54pm UTC](https://community.coherence.io/t/gameobjects-do-not-trigger-onvaluesynced/264 "2023-03-09T19:54:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neodamus](https://avatars.discourse-cdn.com/v4/letter/n/4491bb/32.png) [@Neodamus](https://community.coherence.io/u/Neodamus)\
**Post date:** [March 9, 2023, 7:54pm UTC](https://community.coherence.io/t/gameobjects-do-not-trigger-onvaluesynced/264/1 "2023-03-09T19:54:21Z")

</div>

## Brief description

GameObject fields correctly sync, but when GameObject changes, it does not trigger the OnValueSynced attribute as with other types such as int.. ie: OnValueSyncedSampleMethod(GameObject old, GameObject new)

## Environment

SDK: 0.10  
Unity: 2022.2.1f1  
OS/Platform: Win10

---

<div class="post-metadata">

**Author:** ![ciro](https://dub1.discourse-cdn.com/flex017/user_avatar/community.coherence.io/ciro/32/82_2.png) [@ciro](https://community.coherence.io/u/ciro)\
**Post date:** [March 10, 2023, 8:24am UTC](https://community.coherence.io/t/gameobjects-do-not-trigger-onvaluesynced/264/2 "2023-03-10T08:24:40Z")

</div>

Thanks for the report, Neodamus!

I do see however that this is mentioned in the docs, at the very last paragraph of this page: [https://docs.coherence.io/unity-sdk/networking-state-changes/value-sync-callbacks](https://docs.coherence.io/unity-sdk/networking-state-changes/value-sync-callbacks)

> Value sync callbacks are currently only supported for value types. That means the following types are not supported: byte[], CoherenceSync, GameObject, Transform and RectTransform.

Sorry! But in any case, something we need to look into and make it happen! Hence the _currently_ in that text.

---

<div class="post-metadata">

**Author:** ![Neodamus](https://avatars.discourse-cdn.com/v4/letter/n/4491bb/32.png) [@Neodamus](https://community.coherence.io/u/Neodamus)\
**Post date:** [March 10, 2023, 2:46pm UTC](https://community.coherence.io/t/gameobjects-do-not-trigger-onvaluesynced/264/3 "2023-03-10T14:46:28Z")

</div>

Ah I see, just wanted to make sure it was known, but looks like it obviously is 😉

Should I delete this and add to suggestions instead?

---

<div class="post-metadata">

**Author:** ![ciro](https://dub1.discourse-cdn.com/flex017/user_avatar/community.coherence.io/ciro/32/82_2.png) [@ciro](https://community.coherence.io/u/ciro)\
**Post date:** [March 10, 2023, 3:04pm UTC](https://community.coherence.io/t/gameobjects-do-not-trigger-onvaluesynced/264/4 "2023-03-10T15:04:31Z")

</div>

Thanks for the thought 🙂 I think we can move it ourselves, though I don’t seem to have the power. Maybe @per_coh?
