how to create a wrapper for C++ class libraries
i want to use some C++ libraries in unity. unity just can use C style function libraries. how should i wrap the classes? think i want to use physx cloth or any other library. unity already do that with...
View ArticleHow should I add references to additional Mono assemblies?
Unity is built on Mono. Mono includes a large and growing subset of .NET. Much of this subset is available out of the box with Unity, so I can do things like add "using System.Collections.Generic;" to...
View ArticleHow do I call an Office function from a C# script?
I'm working on a game that needs to use some Excel functions. I tried to import those dll's into the asset folder: Microsoft.Office.Interop.Excel.dll Microsoft.Vbe.Interop.dll...
View ArticlePerformance penalties
Are there any performance penalties in putting classes in an external dll rather than defining them directly in Unity and letting them inherit from MonoBeaviour? Another way to put it - do I gain any...
View ArticleBuild argument -reference:ALIAS=DLL
My problem is the following. As I need to use **System.Windows.Form** namespace for Windows dialogs I first tried to use normal "Edit Reference" in MonoDevelop, search for the .dll in...
View ArticleEditor scripts into external assemblies? how?
I have a class that I'd like to have a custom editor for. I have the class working in an assembly DLL ok. Now, how would I go about doing the custom editor? Can I put it into the same assembly? As I...
View ArticleCheck external application preferences error
Hi ! After I open Unity and try to open any script I have this error : Unable to open Assets/xxx/xxx.cs: Check external application preferences
View ArticleExternal DLL requiring Image
I have an external DLL that requires an Image from the System.Drawing namespace of C#. This, however, does not seem to be part of what Unity offers. Is there any way to get an Image, or something...
View ArticleCan I use .NET 4.5 assembly as external library?
I want to use set of features, implemented in .NET Framework v4.5. Cause Unity3D works on Mono runtime(equivalent to .NET 3.5), i think to use .NET4.5 assemblies as external plugin. Is it possible? If...
View ArticleQuestion about external DLL
Hi Everyone! I Have a problem with an external DLL. I have to use a C++ dll that i've made to send commands to an eyetracker. The problem is that in the Unity Editor works, but compilled not. My C code...
View ArticleControl output of visual studio 2013 output
I have created an external library with some classes, basically my own game framework for use across many Unity projects. I have the build output going to a Libs folder inside the Assets folder in a...
View ArticleUnity TestTools and External DLL conflict?
Greetings everyone. I have a problem that I find weird. I have created some dll files that I want to use in my Unity project. I have compiled them with VS2012 and tested them outside of Unity and...
View ArticleHow Is 'fileID' Generated For Classes Inside an External DLL?
When you link to a MonoBehaviour that is inside of an external DLL, the resulting asset file refers to that particular class by a 'fileID' and the 'guid' of the external DLL. For example, a...
View ArticleReference external project
I'm trying to to include an external library that I want to use between multiple projects. Monodevelop is fine with everything: ![alt text][1] Unity however, is not. Should I somehow inform unity about...
View ArticleExternal library error without external libraries?
I get these three errors every time I attempt to build my project: NullReferenceException: Object reference not set to an instance of an object...
View ArticleUsing GDAL from Unity
Hello, I want to read a raster map from my Unity application. I planned to use Geospatial Data Abstraction Library(GDAL) for this task. This is a C++ library but it has a C# wrapper which handles C++...
View ArticleAudioclip error using NAudio to open MP3 file on Windows
I'm using the [NAudio libraries][1] to open an MP3 file from the HardDrive, convert the byte array returned to a float array and then create an audioclip to set it to an AudioSource because i created a...
View ArticlePackage manager for 3rd party libraries.
Hi. I'm using Unity 5.3.2f, MonoDevelop 5.9.6 and looking for package manager like Maven or Grandle in Java world. Is there any good solustions or manual capy/past is the best way to go? I would...
View ArticleHow to connect to external server with DDE?
I am trying to make an online game that also uses realworld data from an external (not unity) source. The external data server is using DDE links to update data in real time. I can write a CSharp...
View ArticleImporting object type from .so lib
Hi, How do you import an object type into Unity? For instance, let's say I have a .so library written in C/C++ with this inside: Lib: typedef struct myObject{ // some stuff here } myObject; Then what...
View Article