# (Unity)Logic Control leads to 3D Attributes error? why?

**URL:** https://qa.fmod.com/t/unity-logic-control-leads-to-3d-attributes-error-why/13492
**Category:** Unity
**Created:** [October 16, 2017, 12:00pm UTC](https://qa.fmod.com/t/unity-logic-control-leads-to-3d-attributes-error-why/13492 "2017-10-16T12:00:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![licheng314](https://avatars.discourse-cdn.com/v4/letter/l/96bed5/32.png) [@licheng314](https://qa.fmod.com/u/licheng314)
#### Post date: [October 16, 2017, 12:00pm UTC](https://qa.fmod.com/t/unity-logic-control-leads-to-3d-attributes-error-why/13492/1 "2017-10-16T12:00:51Z")

</div>

I can’t figure out why it happened. I need help!  
We need an engine sound in our Unity project. I use logic control to simulate the process of engine. But after I added the logic component in FMOD, the weird error happened: the object with engine sound can’t locate the 3D Attributes correctly any more!  
I supposed that the engine sound should always follow the character. But after the first time it has played, it can’t follow the character anymore.  
I monitor the distance from the engine sound to listener(the camera) with this code:  
Debug.Log(" Distance: " + (Audio.transform.position - Camera.main.transform.position).magnitude.toString())

But it shows that there isn’t any abnormal data with it.  
The logic component I added in FMOD is “Loop Region” and “Transition”. Only if I remove them from the engine sound, the error doesn’t happen.  
Unity Version : 5.3.4f1  
FMOD Version : 1.09.06  
So how can I fix this Bug?  
Thanks a lot!

---

<div class="post-metadata">

### Author: ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)
#### Post date: [October 19, 2017, 5:13am UTC](https://qa.fmod.com/t/unity-logic-control-leads-to-3d-attributes-error-why/13492/2 "2017-10-19T05:13:21Z")

</div>

> [@](#):
>
> I can’t figure out why it happened. I need help!  
> We need an engine sound in our Unity project. I use logic control to simulate the process of engine. But after I added the logic component in FMOD, the weird error happened: the object with engine sound can’t locate the 3D Attributes correctly any more!  
> I supposed that the engine sound should always follow the character. But after the first time it has played, it can’t follow the character anymore.  
> I monitor the distance from the engine sound to listener(the camera) with this code:  
> Debug.Log(" Distance: " + (Audio.transform.position - Camera.main.transform.position).magnitude.toString())
> 
> But it shows that there isn’t any abnormal data with it.  
> The logic component I added in FMOD is “Loop Region” and “Transition”. Only if I remove them from the engine sound, the error doesn’t happen.  
> Unity Version : 5.3.4f1  
> FMOD Version : 1.09.06  
> So how can I fix this Bug?  
> Thanks a lot!

Are you getting any warnings or errors in the console log?
