is it possible to bind or cross-scripting unity3d?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By liss22

I know this question is crazy, but Godot have C# so…

for example,

  1. Unity → Godot
    Nreal dev-kit support unity only.
    is it possible to porting? (even if translate script)


  1. Godot → Unity
    unity has no Websocket (but csharp has. just wonder)
    is it possible to use godot-mono’s Websocket on Unity?

I know this question is crazy, but …
wonder you guys ideas and opinions :slight_smile:

:bust_in_silhouette: Reply From: gnumaru

Godot currently cannot be compiled and used as a library, so the ways for unity to use something out of godot, without making changes to the engine, is using common inter process comunication techniques: You could make a script for godot that listens and responds to requests on a network port, or you could execute it from the command line and capture the process standard output or use some file in the filesystem as means for data exchange.

On the other hand, Unity can be used as a library (even though I don’t know any detail beyond this statement):

It probably is a C++ library, not a .net one, so you would have to use gdnative/gdextension, create a module or change the godot engine in order to use unity as a library for something.

Sounds like Godot → Unity (probably No, but can use with side-work) / Unity → Godot (there is some hard way, Yes)
self-network-communication and running with command line is very interesting ways, thank you for your ideas

liss22 | 2021-10-28 00:29