Pass large array of structs to native plugin
Hello, I want to pass an array of structure to c++ native plugin. I did as below and I can access the data but my application crashes after the c++ function is executed and I am not sure why. C# side:...
View Articlenative audio plugin registration on iOS
In the section "Native Audio Plugin SDK" the manual states: "For platforms such as IOS the plugin code needs to be statically linked into the Unity binary produced by the generated XCode project and...
View ArticleIs there a contained memory enviornment for a Native DLL's memory allocation...
Currently, I am in the process of making a plugin for Unity that relies heavily on a runtime that exist in a native DLL that will handle most of the processing. The Native DLL will make and manage it's...
View ArticleGetting a non-interleaved native vertex buffer
Hi! I'm currently trying to pass a GL vbo from Unity into nvidia's OptiX raytracer without copying data. I'm currently running into a problem where OptiX accelerators expect the vertex buffers to...
View ArticleError when building with a native plugin
When I build and run by project I get these error: ArgumentException: The Assembly System.Configuration is referenced by System.Data ('Assets/DLL/System.Data.dll'). But the dll is not allowed to be...
View ArticleIs Texture.apply() for Unity == glTexSubImage2D on native side on Unity
I have a texture in Unity which I will modify frequently. Now there are two options: 1. I can make changes to texture by calling setPixels and then call Texture2D.apply. I think the apply actually...
View ArticleIn a Native rendering plugin, how do I distinguish the two views of a VR draw?
I'm calling IssuePluginEvent on a CommandBuffer that's added to a Camera. The camera is used for VR. The plugin event is called twice, with the same Id. How do I distinguish left and right eyes here?...
View Articlescan wifi using AndroidJavaObject
hi . I want to scan wifi by using AndroidJavaObject. I can get ssid with this code : AndroidJavaObject activity = new AndroidJavaClass("com.unity3d.player.UnityPlayer").GetStatic("currentActivity");...
View ArticleUsing C++ classes in native DLL for Unity
I'd like to use classes written in my C++ native plugin in Unity. Here's my attempt. The C++ code (compiles fine): // frontengine.cpp #include "stdafx.h" #include "FrontENGINE.h" extern "C++" {...
View ArticleiOS Plugin - Possible to Register 2 subclasses of UnityAppController with...
Hello, I'm using iOS native plugins in my project but I'm also using my own plugin which needs AppEvents. So the other plugin is register a subclass of UnityAppController and my classe too with...
View ArticleHow can i change the texture a camera captures so that my changes are...
Hey guys, i implemented a native plugin for modifying textures. For this i used the sample from Unity. In the sample there, the scenario is that the c# script is attached to a plane object, there is a...
View ArticleNative Audio Plugin resetCallback to reset the plug in to its initial sate?
I'm building a Native Audio Plugin in C++ and currently having issues when Unity moves from being in play mode to out of play mode. From what I understand from the documentation the call back:...
View ArticleOut of ideas on how to make this plugin work again, please HELP!
Hello Unity people , I've created a project using these two plugins: [Image and Video Picker][1] & [Native Music Picker][2]. These two allow me to access the (Android) device's media files in a...
View ArticleCan we safely use native texture pointers with multi-display?
Hi there, My application happily uses native texture pointers (OpenGLCore, OpenGL2, D3D11 and D3D9) with single displays. However, when going **multi**-display (D3D11), Unity (5.6.1, 5.6.2) freezes as...
View ArticlePlugins being forced to Native even though they are managed
I have a project working fine on one Mac that I am trying to get working on a different Mac. I pull the git repo down and when I open it in unity a few of the plugins are set to Native even though they...
View ArticleHow do you use a class from a .dll file?
I'm trying to use a class, "DevIO", from a Microchip library, "MCP2210-M-dotNet2.dll". When I downloaded the library, it had a managed and unmanaged folder, but Unity is reading both of them as native...
View ArticleNative plugin dependencies
My native C++ plugin isn't loading because of missing (undefined) symbol: Unable to load library '/data/app/com.remap.NdnRtcTest-1/lib/arm/libNdnRtc.so', native render plugin support disabled:...
View ArticleCan we use native OS X app as UI with Unity?
Hi everyone, I'm working on a OS X app with Unity, and I'd rather not use Unity canvas, instead I would like to use a native custom made OS X app built with XCode. The UI would be full objective-C code...
View ArticleEditor freezing with multithreaded DLL native plugin in Release but not in Debug
I have a DLL with a native plugin that runs a very time consuming infinite loop which runs in a separate thread to avoid freezing the main Unity rendering thread. Everything works flawlessly when I...
View ArticleDetect if game is edit in play mode or player mode, which is built app, on...
Hi, I'm wondering if there is any way to find out if it is in **edit in play mode** or **app** on **native plugin** without communicating with managed code. I've searched for native interfaces but...
View Article