mindwave plugin/headset not connecting: how to troubleshoot?
I'm using the unity plugin supplied by mindwave to connect their bluetooth eeg headset to a unity game... so far unable to connect. this is on mac os. here are a list of questions I have as I try to...
View ArticleHow to update Unity3D texture from C++ on an Android device?
I want to update a Texture2D from C++ code on an Android device. I pass the texture's native texture ID resulting from the Unity3D call texture.GetNativeTextureID() to C++. In C++ I create an array...
View ArticleReading Native Surface Texture into Streaming Unity Texture [Android]?
I am trying to retrieve the camera preview image on Android and show it on a plane in Unity. In my native code I created the following function: SurfaceTexture surfaceTex; public void...
View ArticleHow do I get files into the Plugins folder from a unitypackage?
Native plugins need to be in Assets/Plugins. I am making a package with the Asset Store Tools, and these tools only permit ONE folder to be specified. I can't specify the root folder, because that...
View ArticleHow can I build the rendering plugin example on OS X 10.10?
I'm just beginning to get into native plugin rendering in Unity, and I downloaded the [rendering plugin example][1] from the documentation. The built plugin that's already in the project displays...
View ArticleWriting user define and in built method for android
I want to execute user define and in built method in Unity. I am clearly aware with call of object and class related method available in Java API. Such as following type of code AndroidJavaClass...
View ArticleExecuting native iOS code in Unity
I want to execute following code in Unity. UIImage *image = [UIImage imageNamed:@"roadfire.png"]; NSString *message = @"Best image from my application."; NSArray *postItems = @[message, image];...
View ArticleNative Rendering Plugin with Oculus Rift
I'm working on a project that offloads some rendering to a native plugin I wrote for Unity, in order to make use of instancing and other advanced graphics features. I'm developing it for a...
View ArticleHow do I insert custom rendering before transparent objects?
I want to put some custom rendering code in, after rendering solid geometry, but before transparencies. If I add code to call a native plugin with GL.IssuePluginEvent in a camera script in...
View ArticleExecute native ios code in unity
I want to execute native iOS code in unity. For this I have added two files in /plugins/ios. 1. ViewController.h 2. ViewController.m Code for each file represented as under. **ViewController.h**...
View Articlemultithreaded rendering on android breaks nativetexture update in plugin
For my ImagePicker for Android plugin I started working on implementing native texture updating. It works perfectly now and is a lot faster then saving / loading through temporary files. However in...
View ArticleUpdate DX11 texture asynchronously in native plugin?
Sorry for the long question :D **tl;dr version :)** Is it possible to update DirectX 11 textures asynchronously in native plugin (C++)? I've written a plugin that retrieves data from Kinect. Currently,...
View ArticleSharing image and text using objective c native code
I am trying to share image and text on any selected social media. I want to implement functionality similar to intent sharing in android. For this I have written following code in objective c and call...
View ArticleUnity 5 and IOS Native plugins
When I try to compile the Xcode project (Xcode 6) the scripts from Assets/Plugins/IOS isn't added to the Xcode project. I saw in the release notes that deep plugin folder support added, but nothing...
View ArticleGame Always Crashes On Some Android Devices
Hi, our game runs smoothly on most of the android devices but always crashes on some devices such as HTC One , Nexus 5, etc... There is no specific code for devices in our game, it runs always the same...
View ArticleNative Integration with OpenGL render
I am currently trying to implement an open source auxiliary renderer in OpenGL. To boil it down to a simple problem I started with scene consisting of a single quad. In my native plugin I try to render...
View ArticleCan you save a texture to android with orientation from unity?
So on android, when I'm loading images into my app from the gallery I use a native plugin which gives me the file's location and **orientation**. Shortly after loading the image into a Texture2D I'd...
View ArticleUnity3D : iOS native plugin - UnityGetGLViewController's view has wrong...
I am writing an iOS plug in for a 2D game in Unity 4.6.1. The game runs in landscape orientation. I am testing this on iPad. For some reason on iOS 7, the view of the viewcontroller (obtained by...
View ArticleWindows 7 x64 Unity Native Plugin Example doesn't work
Example code has been built without troubles. But it doesn't work. I'm calling GL.IssuePluginEvent method from OnPostRender method of script attached to camera as it was written in short introduction...
View ArticleEXC_BAD_ACCESS on PreparePresentRenderingSurface (iOS Build)
Hello guys, I'm having a problem I can't quite figure out. Basically, I have an iOS native plugin that opens a native view when my Unity code requires. It works fine for the first time. However, on the...
View Article