Loading Windows 10 DLL. "This operation is only valid in the context of an...
I am currently working on a native plugin for Unity involving other static libraries (dependencies). I have recently upgraded to Windows 10, and am running the most current Unity. I followed...
View ArticleGetting EXC Bad Access in Xcode while using native c++ plugin.
Hi, I am trying to build a native plugin for unity but I am getting __*EXC Bad Access*__ error on Xcode while running the app on an iPhone. To my understanding it seems that IL2CPP is trying to free a...
View ArticleWhich DXGI_FORMAT is supported by Unity's DDS Importer
Hi, I've created a texture atlas plugin to be used inside the Unity Editor. It collects the albedo, bump and metallic textures from the materials and bakes a new texture from each with proper mip-maps....
View ArticleUsing Android Native Classes in Unity3d / File open Dialog
Hello everyone, I need a function to select a (movie) file from Device memory (Gallery or anything). If I am correct I need to use a android native plugin or something like this. But I don't get what I...
View ArticleHow to step into a native C++ dll in Visual Studio?
I'm debugging my C# unity code through visual studio, and I would like to step into my native C++ code. From C#, I am loading my native c++ plugin using the LoadLibrary function. [ DllImport(...
View ArticleDesktop Duplication results into editor crash
Hi, I am currently working on a project where I need my current desktop to be rendered in my Unity game window and later visualize the same in Oculus DK2. I have succeeded in duplicating the desktops...
View ArticleUsing native plugin with callbacks in editor (OS X)
I have a native plugin that has callbacks back to the C# code. This is how the callbacks are setup: C# Side (Unity): public delegate void Callback(int value); [DllImport("NativePlugin")] public static...
View ArticleHow do you determine the Android Architecture during runtime?
I'm working on a native plugin for Android and need to determine if the processor is x86 or ARM. How is that determined at run-time?
View ArticleError when using a NDK built Library which depend on another one in a Unity...
I want to create a native C++ program and use it on Android and I learned to do so using the Android NDK. I've even created a test plugin (lib*.so ) which worked perfectly. But when I created a plugin...
View ArticleAre you missing an assembly reference? Android build
Hi, I am working a simple game that uses a native library written in C++ and a C# wrapper for this library. When I compile my project for Windows/Mac, I do not get any error and the game works as...
View ArticleAdding button to native scene view controls
Hi, This question has been asked numerous times yet no definitive answer has been given. I am trying to add button to scene view native controls (Where toggle button to control lighting is located) ....
View ArticleUsing .so library in unity android by c# script
Hello all! I have a question about using native .so file in unity! I'm trying to use enet UDP library in unity android. I have c# functions which wrapped native c functions. const string LIB =...
View ArticleChanging Impulse Response AudioClip in Convolution Reverb Demo plugin of the...
Where do I load my own impulse response (IR) into the demo convolution reverb plugin from the Native Audio Plugin SDK, please? The C# code of the ConvolutionReverbUploadIR is: using UnityEngine; using...
View ArticleTexture2D.EncodeToPng() saves gray PNG, all texture data missing
I pass a native texture pointer to a native plugin, where I do some writing to the texture. I can draw the texture in my 3D environment on a mesh and inspect the proper data within the Unity Editor, it...
View ArticleHow can I access Native Android Classes with parameters?
Hi, I'm building an Android application in Unity 3D and I need to use a jar file. I need to call a special method inside that jar file and the main calss extends Activity : public static void...
View ArticleRead asset file during native audio plugin initialization
How can I read a text file located in the asset folder from within the C++ UnityGetAudioEffectDefinitions callback of a native audio plugin? int...
View ArticleNative Rendering Plugin with UI Image
I was checking out the NativeRenderingPlugin demo found here https://bitbucket.org/Unity-Technologies/graphicsdemos/src/548c5251ddbe82129b2584992a0f50caa4c34c6c/NativeRenderingPlugin/?at=default and I...
View ArticleiOS plugin and device heading
Hi, I'm trying to pass the device heading from the iOS plugin to unity, but i can't understand how! I tried some examples found on the web but nothing works.. this is my .mm: - (void)startHeadingEvents...
View ArticleMac OS X native UI for Open dialog, custom menus, access/change tags
Hi folks! To finish my mac app, I need to native behaviors for selecting files and folder, custom menus that callback to unity, a right-click that can show a popup menu and the ability to read,...
View ArticleAccess Unity Script Function From External Program
Hello, I've been trying to create a simple, external C++ program that executes a specific script function in Unity. Using various example found on the forums, I started by creating a native plugin (c++...
View Article