0
0

Hi Guys

i am getting a Attempt to access a private/protected method failed message when running on Unity webplayer.

the full error is:
[code:qdeqv422]MethodAccessException: Attempt to access a private/protected method failed.
at System.Security.SecurityManager.ThrowException (System.Exception ex) [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) FMOD.Factory:FMOD_System_Create (intptr&)
at FMOD.Factory.System_Create (FMOD.System& system) [0x00000] in <filename unknown>:0
at FMOD_Audio.ActivateAudio () [0x00000] in <filename unknown>:0
at PDA_Audio.OnEnable () [0x00000] in <filename unknown>:0[/code:qdeqv422]

I am using the fmod plugin and the code for the fmod system is:

[code:qdeqv422]public class FMOD_Audio
{
private FMOD.System system = null;
private FMOD.Channel channel = null;

public void ActivateAudio()
{
//Create an FMOD System object
result = FMOD.Factory.System_Create(ref system);
}
}[/code:qdeqv422]

Can anyone help?

  • You must to post comments
0
0

The unity integration of FMOD which gives users access to the FMOD API via our C# wrapper is a community project which is not directly supported by us, you might have better luck getting help on the Unity forums. Last I checked the integration requires access to the fmod.dll and that is not possible when targeting the webplayer, but I may be mistaken.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.