- Home /
How to unload / dereference an object c plugin?
I have an objective c code plugin that gives me some access to iPhone. I read this http://unity3d.com/support/documentation/Manual/Plugins.html and got it working. I am accessing the wrapper files from some other scripts (i.e. sceneLevel2/scripts/player.cs) by using something like wrapperFileName.functionCall(). This worked fine.
I initially made a folder named "iOS Specific Code" under Assets folder, and made two sub-folders named "iPhone Plugins" and "Native IOS Code" which have the wrapper .cs files and the native objective c codes with headers accordingly.
Now my project grew bigger and I needed to restructure my scripts. However as soon as I moved the scripts(i.e. player.cs) to some other folder, the scripts lost the reference to the wrapper files and the console says "The name (wrapper file name) does not exist in the current context."
I read http://answers.unity3d.com/questions/10216/unload-a-plugin.html and it seems I cannot refresh library links? Am I doomed and stuck with my old file structure or is there a way to fix this? Thank you for any help in advance.