Archive 17/01/2023.

C# support status

Sehlit

Hello.

I see there are 3 (independent?) C# projects for Urho:

  • UrhoSharp by Microsoft/Xamarin
    (generator is a hack: It's getting easier to use Urho3D with C#, and only works on Mac: .net bindings for Urho3D (C# Microsoft stuff only for Mac ROFL))

  • Net Bindings
    (no visual studio: git hub. com/rokups/Urho3D/wiki/C%23-support :frowning: )

  • C# Script support like the other scripts
    (almost no information on this)

Is any of these production ready? It seems to me UrhoSharp is the most mature but support does not seem very good and I don’t have Mac or Win10 (WSL) so I’m stuck with the releases.

I’m likely going to use C++ but it would be good to have C# as an option and I just want to know the current status and if anyone have tried them and want to share experiences.

Thank you

Omid

You don’t need to have a Mac for using UrhoSharp. !!!

By the way if you want to compile it by yourself on windows you can clone the repo from github and compile it.
Only generator is working on mac because they using old version of MonoCLang. And you don’t need to generate the code because it’s already generated and pushed to github.

rku

Define “production ready”. All of them have missing pieces and dark corners. If you want to use that stuff be prepared to put in some work.

Do not fool yourself. UrhoSharp (or any other solution for that matter) is far from complete. If you start working on a non-trivial project using this technology you will definitely run into problems. You will find yourself dealing with unexposed APIs. You also may want to expose your own c++ code to managed runtime. Ability to generate bindings is not optional. It is a necessity.

Omid

Already we had dissolution about it.! What i said and what you reply it’s something else.

esakylli

I have used UrhoSharp for 2 years now. For my use-case it has worked very well.
I have only encountered one unexposed API (Bullet Physics specific API that you could call if you had access to the underlying C++ pointer).

rku

What is the size of your project?

esakylli

@rku I’m sitting in Visual Studio for Mac and don’t have the fancy code metrics option… but my project is between 7000 and 10000 lines of code (depending on how you count).
I have mainly used 3D graphics, bullet physics and 2D UI in Urho.