Use Java library in Unity 3D

Hi everybody,

I made a Java library and I would like to be able to use it in Unity 3D, and not only for Android devices, but for iOS as well.

I saw there are some tutorials on the Internet about doing a plugin for Android, but no one on how to use Java library in Unity.

I tried by converting my *.jar in a *.dll file. I can access my library methods, but it only works when I export my game for Windows devices. So, is there any other way to access my library methods on every device?

Thanks!

I’ve never heard of java for iOS. You always needed to write a native Objective-C plugin for the iOS platform.