how to set the event which both contain 2d & 3d sounds in fmodstudio editor?

when I tried to add a parameter to control which sound to play , I found that the 3D attribute is not based on the parent event, and nested event is invalid to add/delete effect of 3d panner to control .
As long as the nested event has set with 3D panner effect, the parent event is with the 3D attribute.
Can you tell me How to control the creation of multiple sound effects according to event parameter, and the 3D attribute is under the nested event control ? Is there any way to achieve this demand just operate in the editor?
by the way,if it can not achieve ,it can be solved with the function ChannelGroup::set3DLevel?
Look forward to your reply ,thank you !

Sorry, I’m having trouble parsing this question. What do you mean by “nested event is invalid to add/delete effect of 3d panner to control” and “the parent event is with the 3D attribute?”

For example , “A” event has a parameter(like named “index”) , index = 2 is added with the nested event(“a” & “b”) , “A” event is deleted the effect of “3D panner” in the editor, and “a” is added the effect , “b” is deleted . when I create event “A” in the code with different value of the “index”, both “a” & “b” is 3d sound which get with the interface “is3D()”.

A 3D event is defined as an event whose behaviour changes based on its position relative to the listener. If an event (A) references an event (B) that changes behaviour based on its position relative to the listener, this means that A includes content that changes based on its position relative to the listener; By definition, if A references a 3D event, A is also a 3D event.

Thus, there is no way to make an event be 2D if it is 3D… Other than removing all its 3D content, including that of any 3D events it references.

1 Like