Directx12 CreateExternalTexture
Hi Unity developers and advanced users! I'm working on a plugin which uses native rendering and needs to create a texture in C++ code, which then used inside Unity. For DX11 i'm using...
View Articlecan you accsess to low-level hardware with native plugins without unity pro
title^ i need an explanation too the answer from this post : http://answers.unity3d.com/questions/134463/communicate-with-parallel-port.html it talks about accessing a port to send "triggers" to an...
View ArticleAndroid Plugin - .aar file missing R$raw reference
I have an android (.aar) plugin in my Unity project's Assets/Plugins/Android/ folder. It compiles, however during runtime, I'm getting a missing resource class runtime exception: AndroidRuntime: Caused...
View ArticleHow to get a texture from DirectX
GetNativeTexturePtr retrieves the native pointer corresponding to a texture, as to send it to native code. Is there any way to do the reverse? That is create a texture in the native code and then bring...
View ArticleWhy the Unity3D only can load 32-bit native plugin(.so) on android platform?
I built a native plugin (shared library, .so) for ARM64-v8 on android platform. It works well with the plain android apps. But, when the Unity3D loads it, I just got an error message with "... .so is...
View ArticleUnityPluginLoad never called on iOS, Is it just broken?
I looked at the [low level native interfaces][1] and built a iOS plugin (static lib), exporting the required functions described in the Link. There is no Problem calling functions from script manually,...
View ArticleIUnityEventQueue - how do I use it?
I am currently writing a C++ native plugin for my Unity application. I've came across the IUnityEventQueue.h file in the UnityPluginAPI folder, but documentation is pretty thin on the ground - do some...
View ArticleWhy Unity not import .so file to my apk
Hello eyeryone, Sorry for my bad English. I tried to write an unity plug-in for android, then I put .jar file in the - Assets\Plugins\Android\ and put .so files in -...
View ArticleHow to get pixels from an external texture?
Hello, I wanted to know how to get pixels from an external texture (plugin : EasyMovieTexture). Currently, I'm using this function : private Texture2D GetReadableTexture(Texture2D tex) { if...
View ArticleDoes Unity iOS have equivalent of AndroidJavaObject , AndroidJavaClass ?
Thats coming handy when you need to call native api from android without writing a plugin. Is there any chance to have that for ios?
View ArticleHow can I call UpdateDepthTexture after NativeRenderingPlugin.
hi. I use NativeRenderingPlugin. i am using NativeRenderingPlugin to draw custom meshes. After that I would like to do DoF with post effect. but UpdateDepthTexure () is not called after...
View ArticleMove C# scripts to DLLs targeting UWP/Net deployment: the type or namespace...
I created some C# code for one of my Unity 5.4.0-f3HTP projects (developing on Win10, x64). This code "lives" in the Assets folder of the Unity project. I wrote the code so that the project can be...
View ArticleNative plugin device not created with D3D11_CREATE_DEVICE_BGRA_SUPPORT on...
I'm creating a native plugin for Unity, and when it gets the device from unity, a call to GetCreationFlags shows that the device in the editor was created with D3D11_CREATE_DEVICE_BGRA_SUPPORT, but the...
View ArticleInclude .so native file in an Android .aar file
I have a situation where I am building an android .aar file with android studio, and the java files reference some external native methods in the .so. However any effort I make to include the .so file...
View ArticleExecute native plugins in edit mode?
Is it possible to execute a native plugin in edit mode? Using ExecuteInEditMode seemed to only call the plugin a few times and then stop. More specifically, if yes to the above, can you render in the...
View ArticleProblem with camera Rendering
Hello, I would like to get the output of a camera in a native plugin, but I have some trouble to make it works. Here is the behaviour I use for the camera : public class TestNativePlugin :...
View ArticleFBO always 0 in native plugin IOS
Hi, I'm making a Native unity plugin in IOS which is reading a Unity RenderTexture in my native code. I used the Unity events as describe in the documentation. ![alt text][1] ![alt text][2] [1]:...
View ArticleiOS open docx file from Application.persistentData
I have written a mobile unity app that needs to open a downloaded docx file. I can do this on my android build by simply calling Application.OpenUrl(myPath); and it works fine. I found that it is not...
View ArticleUnity sending garbage strings to native plugin on editor alt-tab and back
Hi there. I have a simple native C++ plugin for Unity that simply receives a string from Unity and passes it through a network. Everything works fine until I alt-tab out of Unity and back. Now the...
View ArticleUnity - How to add native view to Unity main activity?
Hi everybody. I'm working on the a Android plugin for Unity. I have a problem. How can I reach Main Activity(Unity Player Activity)and add view(button,textview,toggle,etc.) to this activity? (See...
View Article