# 3dAttributes not updating?

**URL:** <https://qa.fmod.com/t/3dattributes-not-updating/20842>\
**Category:** Unity\
**Tags:** unity\
**Created:** [November 4, 2023, 12:05am UTC](https://qa.fmod.com/t/3dattributes-not-updating/20842 "2023-11-04T00:05:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thelebaron](https://avatars.discourse-cdn.com/v4/letter/t/e274bd/32.png) [@thelebaron](https://qa.fmod.com/u/thelebaron)\
**Post date:** [November 4, 2023, 12:05am UTC](https://qa.fmod.com/t/3dattributes-not-updating/20842/1 "2023-11-04T00:05:58Z")

</div>

I’m working on a very simple attempt to integrate fmod with my dots project. Ive got events playing via guid, but it doesnt seem like I’m able to update the 3d attributes using  
`instance.set3DAttributes()`

```auto
        foreach (var (localTransform, localToWorld, fmodSourceData, entity) in SystemAPI.Query<LocalTransform, LocalToWorld, RefRW<FMODEmitter>>().WithAll<FMODUpdate>().WithEntityAccess())
        {
            if (!instance.isValid())
            {
                instance.clearHandle();
                return;
            }
            
            if (instance.isValid())
            {
                instance.getPlaybackState(out var playbackState);
                if(playbackState == FMOD.Studio.PLAYBACK_STATE.STOPPED)
                    return;
            }

            fmodSourceData.ValueRW.PreviousLocalToWorld = localToWorld;

            var incomingAttributes = To3DAttributes(localToWorld);
            instance.set3DAttributes(incomingAttributes);
            instance.get3DAttributes(out var attributes);

            Debug.Log(new float3(attributes.position.x,attributes.position.y,attributes.position.z) + " -vs- " + new float3(incomingAttributes.position.x,incomingAttributes.position.y,incomingAttributes.position.z));
        }

```

using get3DAttributes, the values are always the same as the initial setting of them when the instance is started, but never changes after that.

---

<div class="post-metadata">

**Author:** ![thelebaron](https://avatars.discourse-cdn.com/v4/letter/t/e274bd/32.png) [@thelebaron](https://qa.fmod.com/u/thelebaron)\
**Post date:** [November 4, 2023, 5:19am UTC](https://qa.fmod.com/t/3dattributes-not-updating/20842/2 "2023-11-04T05:19:53Z")

</div>

Fixed it, still unsure with what was wrong with this as a simple test approach but ended up creating an instance for each new emitter that is to be played(similar to the runtimemanager’s attached instance list).
