# "Instance of ... has not had EventInstance.set3DAttributes() called on it yet!" on CreateInstance but the event has not been played yet

**URL:** <https://qa.fmod.com/t/instance-of-has-not-had-eventinstance-set3dattributes-called-on-it-yet-on-createinstance-but-the-event-has-not-been-played-yet/21154>\
**Category:** Unity\
**Created:** [January 24, 2024, 8:44pm UTC](https://qa.fmod.com/t/instance-of-has-not-had-eventinstance-set3dattributes-called-on-it-yet-on-createinstance-but-the-event-has-not-been-played-yet/21154 "2024-01-24T20:44:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AldeRoberge](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alderoberge/32/6074_2.png) [@AldeRoberge](https://qa.fmod.com/u/AldeRoberge)\
**Post date:** [January 24, 2024, 8:44pm UTC](https://qa.fmod.com/t/instance-of-has-not-had-eventinstance-set3dattributes-called-on-it-yet-on-createinstance-but-the-event-has-not-been-played-yet/21154/1 "2024-01-24T20:44:35Z")

</div>

What’s wrong with this code?

```csharp
var eventInstance = RuntimeManager.CreateInstance(sound.EventReference);
eventInstance.set3DAttributes(context.Position.To3DAttributes());
eventInstance.start();
eventInstance.release();

```

Why does **RuntimeManager.CreateInstance** causes the warning :

```auto
[FMOD] Instance of Event event:/SFX/L01 Drops/L01_sfx_drop_axe has not had EventInstance.set3DAttributes() called on it yet!

```

I know it’s not been called yet, it has to be called _after_ the creation of the instance, no?

FMOD Integration : 2.02.20  
FMOD Version : 2.02.07  
Unity version : 2022.3.4f1

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [January 29, 2024, 4:13am UTC](https://qa.fmod.com/t/instance-of-has-not-had-eventinstance-set3dattributes-called-on-it-yet-on-createinstance-but-the-event-has-not-been-played-yet/21154/2 "2024-01-29T04:13:41Z")

</div>

Hi,

Could you add `FMOD.RESULT` to the `set3DAttributes()` function to make sure it is running successfully? You are checking the function is returning `RESULT.OK`.

If that does not solve it, can you please tick [Enable API Error Logging](https://fmod.com/docs/2.02/unity/settings.html#enable-api-error-logging), set your [Logging Level](https://fmod.com/docs/2.02/unity/settings.html#logging-level) to “Warning”, and check for any FMOD errors in the console output?
