# Setting 3D Attributes Problem

**URL:** <https://qa.fmod.com/t/setting-3d-attributes-problem/11902>\
**Category:** Unity\
**Created:** [April 27, 2015, 1:30pm UTC](https://qa.fmod.com/t/setting-3d-attributes-problem/11902 "2015-04-27T13:30:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason6954](https://avatars.discourse-cdn.com/v4/letter/j/6f9a4e/32.png) [@Jason6954](https://qa.fmod.com/u/Jason6954)\
**Post date:** [April 27, 2015, 1:30pm UTC](https://qa.fmod.com/t/setting-3d-attributes-problem/11902/1 "2015-04-27T13:30:06Z")

</div>

Hey Guys,

First time scripting this function in and can’t figure out the small detail that is stopping it from working.  
Error Message: Assets/FMOD Scripts/CentMotorScript.cs(25,84): error CS1525: Unexpected symbol `Attributes’

```
using UnityEngine;
using System.Collections;

public class CentMotorScript : MonoBehaviour {
	
	
	
	private FMOD.Studio.EventInstance CentipedeMotor; 
	private FMOD.Studio.ParameterInstance CentHealth; 
	private int health;
	private FMOD.Studio.UnityUtil Attributes;

	void Start()
	{
		Attributes = FMOD.Studio.UnityUtil.to3DAttributes (gameObject);
		CentipedeMotor = FMOD_StudioSystem.instance.GetEvent("{fe1b4740-dfbb-450b-8744-9d03d78e20e2}"); 
		CentipedeMotor.getParameter("Health", out CentHealth);
			Debug.Log ("Start Event");
			CentipedeMotor.start();
	}
	
	void Update ()
	{
		CentipedeMotor.set3DAttributes(FMOD.Studio._3D_ATTRIBUTES Attributes);
		health = GetComponent<Health> ().currentHealth;
		Debug.Log (health);
		CentHealth.setValue (health);
	}

	void OnDisable ()
	{
		CentipedeMotor.stop (FMOD.Studio.STOP_MODE.ALLOWFADEOUT);
		CentipedeMotor.release ();
	}

}
```

---

<div class="post-metadata">

**Author:** ![SteveTack](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@SteveTack](https://qa.fmod.com/u/SteveTack)\
**Post date:** [May 1, 2015, 8:06pm UTC](https://qa.fmod.com/t/setting-3d-attributes-problem/11902/2 "2015-05-01T20:06:10Z")

</div>

I assume you’d want:  
CentipedeMotor.set3DAttributes(Attributes);

rather than:  
CentipedeMotor.set3DAttributes(FMOD.Studio.\_3D\_ATTRIBUTES Attributes);
