|
Rebel Fork Framework
|
⚠️ C# support is experimental ⚠️ It may not work correctly, fail or crash in spectacular ways. Managed APIs will likely change in the future.
ref parametersea::map<K, V>, ea::unordered_map<K, V>, ea::vector<T>)SharedPtr<T> and WeakPtr<T>cmake -DBUILD_SHARED_LIBS=ON -DURHO3D_FEATURES=CSHARP;SYSTEMUI /path/to/codecmake --build .bin/CoreData and bin/Data to output directory (where .exe will be created).bin/{Urho3D,ImGui}Net.dll as references to your project.bin/libUrho3D.so to output directory.bin/Urho3D.dll to output directory.bin/libUrho3D.dylib to output directory.Source/Samples/102_CSharpProject/Project.cs.You may specify -DURHO3D_NETFX=<value> to target specific framework version. <value> is one of .NET framework identifiers specified at https://docs.microsoft.com/en-us/dotnet/standard/frameworks. Default value is net471.
If you set up a custom .csproj project be aware that PlatformTarget property must match CPU architecture you are targetting (x64 for 64bit and x86 for 32bit). Otherwise you would get BadImageFormatException error. AnyCPU platform target will not work.
When engine is built with -DURHO3D_PLUGINS=ON it will automatically compile *.cs scripts under Scripts/ folder on resource path and make defined components available for use. You can find an example at Scripts/RotateObject.cs.