Hi,
I am trying to do a very simple thing. I am trying to change the properties of the audioreverbzone. I have checked the scripting reference and I know how to change properties of other objects but for some reason I can not access any of the properties of audioreverbzones.
So here is a part of my code:
private var world = GameObject.Find (“Reverb Zone”);
private var local = GameObject.Find(“localzone1”);
so I want to change world’s setting with the local’s setting (they are both audioreverbzone objects)
world.reverbPreset = local.reverbPreset;
and it does not work. I have tried other properties, I have tried putting the reverb zones inside an object (world.AudioReverbZone.reverbPreset) but no luck. And I have not seen anybody with the same problem on web.
And the console warnings say (not all at the same time):
An instance of type ‘UnityEngine.AudioReverbZone’ is required to access non static member ‘reverbPreset’.
‘AudioReverbZone’ is not a member of ‘UnityEngine.GameObject’.
‘reverbPreset’ is not a member of ‘UnityEngine.GameObject’.
Any help would be appreciated.
Thanks