Java Plug-Ins

Hi,

is it possible to write Plug-Ins in regular Java?

Are there plans of implementing this?

Thanks.

Edit: To clarify, why I’m asking: Java has, in my opinion, the easiest and most comfortable API. Especially regarding Networking.
Additionally, this is the language I am most proficient in.

You could try one of these:

You need some sort of C wrapper around your Java code, in short. I don’t think this is something OTEE needs to “support” as it should be possible already and they couldn’t do much to make it better.

But I wonder why you want to do this. C# is a lot like Java, really. Sure there are a few big differences, but I think you’d be way better off doing your stuff in C# with Unity. If you know Java, C# should be really easy to pick up.

Have you looked at the .NET networking classes?

Socket, TcpListener, TcpClient, and UdpClient, in particular.

-Jon

I can’t explain it, really. I just got so used to Java, it’s like my mother tongue. I have written Programs in C++ (which I guess is a lot like C# ?) but it just feels…awkward.

Thanks a lot for the link! I didn’t realize such a documentation existed. That should help tremendously.

Anyway, just planing at the time, since I need Pro to implement Plug-Ins.

C# is probably more similar to java than c++.
If you can, I’d go with C#.
It’s going to be a lot easier and more convenient to write code in C# or one of the other languages, than in a plugin.

C# is a lot like Java. Much more similarities between them than C++. And .NET is a pretty clean API as well, and it has networking classes built in (so you don’t need to write a plugin at all).

Does this mean I don’t need Unity Pro to get Networking capabilities?

You should of course buy Unity Pro anyway because of all the other fancy features you get. :slight_smile: Like nice water, image effects and windows publishing.

But Networking is not one of them.

Alright, thanks for clearing that up.

And Pro will be purchased, just not now =)